Foswiki on GitHub is open for business! Next release meeting: Monday October 13, 1300Z

Item11365: Un-deprecate, improve Foswiki::Func::getScriptUrlPath() API

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Enhancement Closed Engine FoswikiFunc PaulHarvey
I can't be the only one thinking that it's madness to have to do something like

my $path = Foswiki::Func::getScriptUrl('web', 'topic', 'view');
$path =~ s/^\w+:\/\/.*?\//g;

AddFoswikiFuncGetScriptUrlPath

-- PaulHarvey - 17 Dec 2011

See also: Item1931. Crawford, in that task you said getScriptUrlPath() was buggy and didn't support the $Foswiki::cfg{ScriptUrlPaths} switchboard thing - I think I've made it acceptable (to me at least). Any comments?

-- PaulHarvey - 17 Dec 2011

http://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Func#getScriptUrlPath_40_36web_44_36topic_44_36script_44_..._41_45_62_36path

-- PaulHarvey - 17 Dec 2011

Well, from inspecting the code history it looks like that comment on Func::getScriptUrlPath is now wrong - AFAICT {ScriptUrlPaths} do apply to URLs generated this way - so I guess my objection is raised.

-- CrawfordCurrie - 17 Dec 2011

Ok. I'll merge into Release01x01 once 1.1.4 is released properly.

-- PaulHarvey - 17 Dec 2011

Forgot to bump Foswiki::Plugins::VERSION. Bumped to 2.2.

-- PaulHarvey - 31 Jan 2012
 
Topic revision: r24 - 11 Apr 2012, GeorgeClark
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License