Fix for Control.Tabs + Safari + uri encoded urls
-
Suneth Mendis
hey!
I did think about what you said earlier on google discussion thread. Does link need to have the
full url at all? In fact the line I changed ( return (/
^#/).exec(link.href.replace(window.location.href.split('#')
[0],'')); ) is actually stripping the rest of the url before the #. So
if the link does not have the full url, better still isn't it?
Cheers,
Suneth
-
Ryan Johnson
- State changed from unconfirmed to hold
- Tag set to control.tabs
Suneth, I've checked in another patch which dealt specifically with webkit, can you check out the latest version and see if it solves your problems?
-
Trey Matteson
I hit this same problem, and the fix that is on the latest revision did not help at all. I am using this line successfully:
return (/^#/).exec((Prototype.Browser.WebKit ? decodeURIComponent(link.href) : link.href).replace(/.*(#.*)/, "$1"));If the intent is to just cut the link's href down to the anchor piece, why mess with the page's url at all? Maybe there are useful cases where they would be different that I am not thinking of.
-
Ryan Johnson
Think I found the problem. When the URL contains "%23" window.location is undefined in safari. Trey, your fix solves the problem, thanks.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.