Item10411: getScriptUrl puts the anchor in the wrong place
Priority: Low
Current State: Closed
Released In: 1.1.3
Target Release: patch
Applies To: Engine
Component:
Branches:
Foswiki::getScriptUrl (and by impklication Foswiki::Func::getScriptUrl) supports a '#' parameter that supposedly lets you define an anchor for a link. However it puts this anchor at the
end of the parameter instead of the start, thus:
getScriptUrl('web', 'topic', 'view', one => 1, '#' => gurgle)
generates
http://server/web/topic?one=1#gurgle
instead of
http://server/web/topic#gurgle?one=1
Major whoops.
--
CrawfordCurrie - 25 Feb 2011
The anchor should be at the end.
--
ArthurClemens - 25 Feb 2011
Yes, you are right; it's something else causing the problem. The client is sending the anchor to the server in one case; trying to work out why.
--
CrawfordCurrie - 25 Feb 2011