Item956: $Foswiki::cfg{ScriptUrlPaths}{view} broken
Priority: Normal
Current State: No Action Required
Released In:
Target Release: n/a
Applies To: Engine
Component:
Branches:
In the past, i used to set
$TWiki::cfg{ScriptUrlPaths}{view} = 'http://foo.com';
to avoid having 'bin/view' in url's.
However, when doing this in foswiki, something odd results, and i get image urls such as:
http://foo.comhttp:/pub/System/ProjectLogos/foswiki-logo.png
Not Good (tm).
Work around:
$Foswiki::cfg{ScriptUrlPaths}{view} = '';
does seem to function correctly.
--
KoenMartens
Hello,
I got it working nicely, so just my 2c: is your apache Alias/Rewrite configuration correct? You can past it here or compare with recipes in
ShorterUrlCookbook .
--
JurajVariny - 02 Feb 2009
It is not related to mod_rewrite or any other apache directive, the behaviour is observed in the raw html output.
--
KoenMartens - 05 Mar 2009
When I look at this I cannot see an error.
The $Foswiki::cfg{ScriptUrlPaths}{view} is a PATH. Not a URL. I cannot see a bug here. If it used to work with a URL where it is supposed to be a path then it seems someone fixed an old bug, not created one.
I set this to no action
--
KennethLavrsen - 25 Apr 2009