Link to home
Start Free TrialLog in
Avatar of USBDev
USBDev

asked on

Ampersand Issue in firefox 3.5

Hi

Here's my issue -

In IE 8, a URL shows up as -

/index.php?option=com_content&view=article&id=93:the-pink-city&catid=42:rokstories&Itemid=111

But in firefox it shows up in the URL as -

index.php?option=com_content&view=article&id=93:the-pink-city&catid=42:rokstories&Itemid=111

The difference is in IE8 we see "&" in the URL and in FF 3.5 they are seen as "&".

I am using a module in Joomla CMS named RokStories and the line in the PHP file I have narrowed down to is -

RokStoriesLinks['rokstories-<?php echo $module->id; ?>'].push('<?php echo $item->link; ?>');

I think its that link that something goes wron with in firefox.

appreciate any help.

Thanks,

UD
Avatar of Beverley Portlock
Beverley Portlock
Flag of United Kingdom of Great Britain and Northern Ireland image

It depends where this link is showing up. If it shows in the address bar at the top of FireFox as

index.php?option=com_content&amp;view=article&amp;id=93:the-pink-city&amp;catid=42:rokstories&amp;Itemid=111

then that is a little screwy. However, this is the correct format for a link embedded in an HTML page because the &amp; stops the link being mistaken for an HTML entity. When the link is clicked the browser knows to recode the &amp; as & and this happens before it is loaded into the address bar and displayed at the top.

Can you post a link to the page that concerns you? Better still, run it through the W3C page validator at

http://validator.w3.org/
Avatar of USBDev
USBDev

ASKER

The site is a bit confidential at the moment. Can I PM you? How do I?
Send an email to brian.portlock at google mail dot  c o m

I rarely use it for emails but I will make a point of logging to check it over the next day or two.
ASKER CERTIFIED SOLUTION
Avatar of Beverley Portlock
Beverley Portlock
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of USBDev

ASKER

Not the exact solution, but gave me guidance to get to my soluton.