Changeset 2700


Ignore:
Timestamp:
05/04/10 11:40:21 (14 years ago)
Author:
rodsouza
Message:

Ticket #1058 - Forçando que a URL esteja sempre na raiz.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoAdmin1_2/index.php

    r2494 r2700  
    5252 
    5353        $url = $GLOBALS[ 'phpgw' ] -> link( '/' ); 
    54         if ( strpos( $url, '/' ) == strlen( $url ) - 1 ) 
     54        if ( strrpos( $url, '/' ) == strlen( $url ) - 1 ) 
    5555                $url = substr( $url, 0, -1 ); 
    5656 
  • trunk/phpgwapi/js/tools/xlink.js

    r2691 r2700  
    11( function( ) 
    22{ 
     3        if ( window.location.protocol + '//' + window.location.host + window.location.pathname != URL_SERVER ) 
     4                window.location.href = URL_SERVER + ( 
     5                        ( window.location.hash ) ? 
     6                                window.location.hash : '#' + String( window.location.protocol + '//' + window.location.host + window.location.pathname ).substr( URL_SERVER.length ) 
     7                ); 
     8 
    39        var _connector = new XConnector; 
    410        var _script = null; 
Note: See TracChangeset for help on using the changeset viewer.