You are here: Foswiki>Tasks Web>Item11365 (11 Apr 2012, GeorgeClark)Edit Attach

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
Reported By: PaulHarvey
Waiting For: PaulHarvey
Last Change By: GeorgeClark
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;


-- 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

-- 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 - This page was cached on 30 Nov 2015 - 18:51. Get a fresh version here.
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License