cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Configuration: Answered

How can I prevent a full page reload when using the TOC to jump to a header?

When looking on foswiki.org jumping via the TOC to some header will happen instantly without page reload. Unfortunately this is not the case in my installation. So what should be done here to solve this?

-- IngoKappler - 17 Nov 2009

Accepted Answer

We had this when using Short URLs, and it was because we forgot to add the following lines to LocalSite.cfg:

$Foswiki::cfg{ScriptUrlPath} = '';
$Foswiki::cfg{ScriptUrlPaths}{view} = '';

Also, if you are using the TOC after getting to the page via a Jump Box, that will cause a reload, as the url will change from something like http://foswiki.org/Support.WebHome?topic=Question324 to http://foswiki.org/Support/Question324#Heading1. Not sure if this behaviour can be improved, but you could try a Feature Request if you want some more discussion on this.

Hopefully I answered it, but feel free to switch it back to Asked if not smile

-- AndrewJones - 18 Nov 2009

Thank you, this indeed solved the issue. I only had to add $Foswiki::cfg{ScriptUrlPaths}{view} = ''; and filled in the correct path. Much better user experience now. smile

-- IngoKappler - 18 Nov 2009

I have the same issue. I have this line already in my LocalSite.cfg

$Foswiki::cfg{ScriptUrlPath} = '/bin';

Now, I add this line-

$Foswiki::cfg{ScriptUrlPaths}{view} = '/bin/view';

Is the path correct? My page still =reloads.=

-- GuruprasadIyer - 01 Feb 2010

@ PaulHarvey: I have a question, not sure why you changed the status to Answered?

-- GuruprasadIyer - 02 Feb 2010

The paths need to be exactly as they are above (i.e. not '/bin/view' but '')

-- AndrewJones - 02 Feb 2010

Please find here what I put into my LocalSite.cfg and it solved the issue for me:
$Foswiki::cfg{ScriptUrlPath} = '/foswiki/bin';
$Foswiki::cfg{ScriptUrlPaths}{view} = '/foswiki/bin';

However, as Andrew points out possibly the path is irrelevant and better should be empty. Actually I am still on 1.0.7, just in case it makes a difference compared to 1.0.9.

-- IngoKappler - 06 Feb 2010

Just a note.. If you have the following url setup: http://server/foswiki/Web/TopicName, you should add the following:

$Foswiki::cfg{ScriptUrlPath} = '/foswiki';
$Foswiki::cfg{ScriptUrlPaths}{view} = '/foswiki';

-- PadraigLennon - 06 Feb 2010

QuestionForm edit

Subject Configuration
Extension
Version Foswiki 1.0.9
Status Answered
Topic revision: r9 - 06 Feb 2010, PadraigLennon - This page was cached on 18 Jul 2018 - 01:21.

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