Item11365: Un-deprecate, improve Foswiki::Func::getScriptUrlPath()
API
Priority: Enhancement
Current State: Closed
Released In: 1.1.5
Target Release: patch
Applies To: Engine
Component: FoswikiFunc
Branches: Release01x01 trunk
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