Item10411: getScriptUrl puts the anchor in the wrong place

pencil
Priority: Low
Current State: Closed
Released In: 1.1.3
Target Release: patch
Applies To: Engine
Component:
Branches:
Reported By: CrawfordCurrie
Waiting For:
Last Change By: CrawfordCurrie
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

 

ItemTemplate edit

Summary getScriptUrl puts the anchor in the wrong place
ReportedBy CrawfordCurrie
Codebase 1.1.2, trunk
SVN Range
AppliesTo Engine
Component
Priority Low
CurrentState Closed
WaitingFor
Checkins distro:83725e6a19a7 distro:57dc25573cbf distro:0f64c7a64282 distro:7a22ac74c743
TargetRelease patch
ReleasedIn 1.1.3
Topic revision: r6 - 25 Feb 2011, CrawfordCurrie
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy