Changeset 2938

Show
Ignore:
Timestamp:
06/30/2008 11:14:58 AM (5 months ago)
Author:
Shadowhand
Message:

Fix to html::anchor: when passing "#id" as the URI, url::base() should not be pre-pended, as this will break the functionality of #id links. To create an #id link to another page, the URI must come before the the #id.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/helpers/html.php

    r2848 r2938  
    6262                        $site_url = url::base(FALSE); 
    6363                } 
    64                 elseif (strpos($uri, '://') === FALSE) 
     64                elseif (strpos($uri, '://') === FALSE AND substr($uri, 0, 1) !== '#') 
    6565                { 
    6666                        $site_url = url::site($uri, $protocol);