Opened 6 years ago

Closed 6 years ago

#2544 closed defect (fixed)

updated path_to_root fails for links from the root

Reported by: dustin Owned by:
Priority: major Milestone: 0.8.8
Version: master Keywords: web
Cc:

Description

If request.prepath has only one element in it, then the new path_to_root returns "/" instead of "". This isn't correct, as that is an absolute, not relative, URL. It should return "./" instead.

Change History (1)

comment:1 Changed 6 years ago by dustin

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in 0.8.8:

commit c69495157713f76ef60b2a23f0bf8de8255c2446
Author: Dustin J. Mitchell <dustin@mozilla.com>
Date:   Sat Aug 10 15:32:54 2013 -0400

    Generate correct relative paths even for pages in the root
    
    Previous code generated '/' for the path to the root, which is not
    relative and causes problems when changing paths with http proxies.
    Fixes #2544.
Note: See TracTickets for help on using tickets.