Loading...
 
Skip to main content

page names with colon, like user:person not working when SEFURL is on

Status
Closed
Subject
page names with colon, like user:person not working when SEFURL is on
Version
6.x
Category
  • Error
Feature
Search engine optimization (SEO)
Resolution status
Invalid
Submitted by
Nelson Ko
Lastmod by
Nelson Ko
Rating
(0)
Description

If you have a pagename with a colon in it, like user:person, it will not work because Firefox will think user: is a protocol.

Solution

Will commit after 6.0 release.

Copy to clipboard
Index: tiki-sefurl.php =================================================================== --- tiki-sefurl.php (revision 27579) +++ tiki-sefurl.php (working copy) @@ -87,5 +95,9 @@ } } } + // Fix links to pages like user:person because Firefox thinks user: is a protocol + if (strpos($tpl_output, '/') === false && strpos($tpl_output, ':') !== false) { + $tpl_output = "./" . $tpl_output; + } return $tpl_output; }
Workaround
Seems to work perfectly now. The colon does get URL encoded and Firefox does not take it as a protocol anymore.
Importance
8
Priority
40
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
3631
Created
Tuesday 09 November, 2010 23:44:21 UTC
by Nelson Ko
LastModif
Wednesday 05 January, 2011 19:54:27 UTC


Show PHP error messages