Item9869: Max URL shortening broken by ScriptSuffix

pencil
Priority: Normal
Current State: Closed
Released In: 1.1.1
Target Release: patch
Applies To: Engine
Component:
Branches:
Reported By: GeorgeClark
Waiting For:
Last Change By: KennethLavrsen
It appears that when {ScriptSuffix} is set to .pl and with maximum shortening is enabled ( {ScriptUrlPaths}{view} = ''; ) then the ScriptSuffix is appended to the hostname for the view and pub URLs.

  • <base href="http://foswiki.myhost.com.pl/System/WebHome" />
  • <meta name="foswiki.PUBURL" content="http://foswiki.myhost.com.pl/pub" />
  • <meta name="foswiki.SCRIPTURL" content="http://foswiki.myhost.com.pl/bin" />
  • <a href="http://foswiki.myhost.com.pl/System/TipTopic021"

LocalSite.cfg contained:

$Foswiki::cfg{DefaultUrlHost} = 'http://foswiki.myhost.com';
$Foswiki::cfg{ScriptUrlPath} = '/bin';
$Foswiki::cfg{ScriptUrlPaths}{view} = '';
$Foswiki::cfg{ScriptDir} = '/var/www/foswiki/trunk/core/bin';
$Foswiki::cfg{ScriptSuffix} = '.pl';

-- GeorgeClark - 23 Oct 2010

 

ItemTemplate edit

Summary Max URL shortening broken by ScriptSuffix
ReportedBy GeorgeClark
Codebase 1.1.0
SVN Range
AppliesTo Engine
Component
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:f3be8935a57c distro:976b1ac72361
TargetRelease patch
ReleasedIn 1.1.1
Topic revision: r4 - 25 Oct 2010, 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