This question about Configuration: Answered

Anchors not working in Safari

In both of our installations of foswiki, page anchors (for example, in a table of contents), don't work in Safari. They do work in Firefox. Anchors in foswiki.org work with Safari, so I suspect this is a configuration problem on our end. Any suggestions would be greatly appreciated.

For example, please see: https://foswiki.classe.cornell.edu/classe/Sandbox/TestTopic8

Our configuration is attached:

-- DevinBougie - 20 Dec 2012

Your short urls are misconfigured, The page loads via ...classe/. The anchors use ...classe/bin/view/. So the browser thinks that this is a completely different page. Even in Firefox you should be able to see a full page reload clicking on an anchor.

Use this to fix the issue:

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

-- MichaelDaum - 20 Dec 2012

Thank you, Michael! With that I got a "404" error because anchors pointed to .../Sandbox/TestTopic8... instead of .../classe/Sandbox/TestTopic8.... This appears to work, however.

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

-- DevinBougie - 21 Dec 2012
 

QuestionForm edit

Subject Configuration
Extension
Version Foswiki 1.1.6
Status Answered
Related Topics
Topic attachments
I Attachment Action Size Date Who Comment
LocalSite.cfgcfg LocalSite.cfg manage 28 K 20 Dec 2012 - 17:03 DevinBougie  
Topic revision: r3 - 21 Dec 2012, DevinBougie - This page was cached on 21 Jan 2018 - 09:53.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License