ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

1.6.9 Base_url bug

July 24, 2010 4:16pm

Subscribe [3]
  • #1 / Jul 24, 2010 4:16pm

    Hello,

    We are using EE 1.6.9, relying heavily on {base_url} to provide our urls. The trouble is, we’re unable to figure out:

    If a user is not logged_in, then the base_url includes the site_index

    If a user is logged_in, then the base_url does not include the site_index

    This is consistent across development/production platforms. We are relying on having site_index in the url for administrative reasons, so right now our only work-around is:

    <a href="http://{base_url}{if">Link</a>

    Is there a way we can make base_url consistent across logged-in and logged-out users?

    Thanks in advance

    EDIT: I was wrong, base_url does not behave consistently from dev to production: on dev, base_url never adds the site_index, so we are adding it as part of base_url to get around this.

    Another bug appears though: it doubles all links so a link to:

    http://domain.com/site_index.php/segment

    renders as:

    http://domain.com/site_index.php/segmenthttp://domain.com/site_index.php/segment

    and thus draws a 404.

    Any help appreciated. Thank you.

    End Edit

  • #2 / Jul 24, 2010 5:54pm

    Greg Salt

    3988 posts

    Hi Caroline,

    Where are you creating the base_url variable? That is not one of the 1.x global variables.

    Cheers

    Greg

  • #3 / Jul 26, 2010 1:37pm

    Its in the path.php

  • #4 / Jul 26, 2010 7:47pm

    Brandon Jones

    5500 posts

    Caroline,

    Can you show us what you’re putting in path.php? Those global variables are static and don’t change. As an aside, any particular reason you aren’t using {site_url}?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases