Loading...
 
Skip to main content

Incorrect URLs on IIS installs in document root

Status
Closed
Subject
Incorrect URLs on IIS installs in document root
Version
2.x
3.x
4.x
Category
  • Error
  • Usability
  • Patch
  • Support request
  • Documentation (or Advocacy)
  • Consistency
Feature
All / Undefined
Installer (profiles, upgrades and server-related issues)
OS independence (Non-Linux, Windows/IIS, Mac, BSD)
Submitted by
thebookdoc
Volunteered to solve
Philippe Cloutier
Lastmod by
Philippe Cloutier
Rating
(0)
Description

This bug is tied to http://dev.tikiwiki.org/tiki-view_tracker_item.php?itemId=1964&trackerId=5&show=view

I have had various issues navigating my wiki seemingly because $base_url is not getting built correctly, or at all. The first of these issues happens at login where the user puts in a bad username or password. The redirect to the error page fails on Firefox and has a URL with doubled forward slashes after the domain because the $base_url is not getting passed. URLs get built as follows (where 'example.com' is my domain):

Firefox:

Image
Copy to clipboard
http://example.com\/tiki-error.php?error=Invalid+username


IE:

Image
Copy to clipboard
http://example.com//tiki-error.php?error=Invalid+username


This happens with relative URLs all over tikiwiki in my installation, which is a WAMP with virtualHost entries in the httpd.conf to resolve 2 distict domains on the same server.

Solution
I fixed this in branch 5.x. Tiki 5.0 should be OK. Thank you mitchp.
Workaround

So far the only partial solution I have found is to add the $base_url declaration to the template page header, like so:

Image
Copy to clipboard
<script> function define_baseurl() { $base_url = "http://example.com"} </script>


This is a partial solution as it does not resolve issues where I add RSS feeds via a module to a page (as these apparently get built with relative rather than absolute URLs).

Importance
9 high
Priority
45
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
2250
Created
Tuesday 06 January, 2009 14:50:41 UTC
by Unknown
LastModif
Saturday 15 May, 2010 04:30:28 UTC


Show PHP error messages