I have an xform on a template which is used to create 'polls' type functionality. However when I show the statistics the images which create the bars on the graph are broken links. When I right click and look at their properties I see the url is 'http://localhost/em/images/ten.gif' - the 'ten.gif' image is in the images directory under localhost but of course there is not going to be any 'en' folder as this is the EpiServer language.
Anyone got any ideas ???
Thanks
Jim
Greetings Jim!
I have tried to recreate your problem but with no success. The link to the image which you described contains the section /em/. Was this correct or was it just a misprint of /en/? Are you using friendly url:s or not? Are these the only resources that have a broken link on your web site?
Hello again!
If you are running a multi langugage site with friendly url you probably have to add the WebControl FriendlyUrlRegistration to your pages. In our 4.6x templates we add the following to the header.ascx-file:
Hi Linus,
To answer your questions , yes I am using friendly urls, I am also using the component in the header.
Yes the image links do contain /en/ (when I typed /em/ this was a mistake).
Anyway, when I view the source of the page, the image source is actually a relative url, and looks something like ../images/ten.gif, for some reason this is getting translated into http://localhost/en/images/ten.gif, so it looks like it is a friendly url or globalisation issue.
Any more ideas you have would be most welcome.
Jim