You are here: Foswiki>Tasks Web>Item956 (25 Apr 2009, KennethLavrsen)Edit Attach

Item956: $Foswiki::cfg{ScriptUrlPaths}{view} broken

pencil
Priority: Normal
Current State: No Action Required
Released In:
Target Release: n/a
Applies To: Engine
Component:
Branches:
Reported By: KoenMartens
Waiting For:
Last Change By: KennethLavrsen
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

ItemTemplate edit

Summary $Foswiki::cfg{ScriptUrlPaths}{view} broken
ReportedBy KoenMartens
Codebase
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Engine
Component
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn
Topic revision: r4 - 25 Apr 2009, KennethLavrsen
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