absoulute urls instead internal relative paths in drupal 6

Discussion in 'PHP' started by a-ha, Nov 21, 2008.

  1. #1
    Hi,
    I would like to turn all my internal links through the site into absolute urls.
    I'm building website using drupal 6. (I'm new to drupal and to php also)
    ---
    I have managed to do that with all links except one - site-name link which is on every page and links to frontpage.
    I have done it by modifying url function in includes/common.inc (line 1267 in drupal 6):- replaced on line 1272'absolute' => FALSE, with 'absolute' => TRUE,

    But that link to frontpage has remain relative. Here it is:
    <a href="/" title="Home">Example</a>

    And I want this:
    <a href="http://www.example.com/" title="Home">Example</a>

    How could I do that? I'm seeking for answer for three days now. It is driving me crazy. I have tried modifying function l, installing abssrc, pathologic, pathfilter, but nothing.
    Maybe this in common.inc should be modified:

    // The special path '<front>' links to the default front page.
    if ($path == '<front>') {
    $path = '';
    }

    If yes, how? If not, what should I do?

    Any help will be appreciated.
     
    a-ha, Nov 21, 2008 IP