Results 1 to 7 of 7

Thread: Base tag not working

  1. #1
    User
    Join Date
    08-09-09.
    Location
    Zwolle, The Netherlands
    Posts
    73

    Default Base tag not working

    Hello,

    I kind of have an odd problem that I can't solve. I'm developing a new site (TL 2.8.1) on my localhost. The base tag url is something like:
    http://localhost/mysite/
    Now the site works fine, but when I go to a newsitem, something like:
    http://localhost/mysite/news-item/item/ ... -item.html
    The stylesheet and all other links don't work (only in IE, it works fine in other browsers).

    I made another site, which still runs in TL 2.7, and the news items work fine there.

    Does anybody know what I'm doing wrong?

  2. #2
    User
    Join Date
    06-29-09.
    Posts
    271

    Default Re: Base tag not working

    How did you include the stylesheets?

    Can you also check the html output to see what url the second link looks at for the stylesheets, this will probably help you most. :idea:

  3. #3
    User
    Join Date
    08-09-09.
    Location
    Zwolle, The Netherlands
    Posts
    73

    Default Re: Base tag not working

    Thanks for your quick reply! :D

    Quote Originally Posted by Vera
    How did you include the stylesheets?
    They are included with the page layout (there is only one layout, a default layout).

    Quote Originally Posted by Vera
    Can you also check the html output to see what url the second link looks at for the stylesheets, this will probably help you most. :idea:
    I'm not sure what you mean. By "check the html output", you mean: check the html source in the web browser? What do you mean by "second link"?

    Remember, it works fine in FF and other browsers, so I suspect it must be something related to IE. Also, I can't log in to the BE. When I go to
    http://localhost/mysite/typolight/
    (which works in FF, etc), I get the login page without styles. When I try to login and click enter, the next page gives a 404 error with the url
    http://localhost/mysite/typolight/typolight/

    I have no clue what's going on...

  4. #4
    User
    Join Date
    06-29-09.
    Posts
    271

    Default Re: Base tag not working

    Can you confirm you have this problem with the online demo as well? If not, then it is your TL setup which has a problem.

  5. #5
    User
    Join Date
    07-26-09.
    Posts
    175

    Default Re: Base tag not working

    Hi cothedo

    I had the same problem. IE has a bugged <base> tag as described on the blog.

    You can change realtive css&js links to absolute ones, simply by putting a slash in front of the href/src.

  6. #6
    User
    Join Date
    07-26-09.
    Posts
    175

    Default Re: Base tag not working

    Please also consider that even menu links can be broken. I have written a hook for this you can find in attachment. Unpack this to /system/modules/ folder.

  7. #7
    User
    Join Date
    08-09-09.
    Location
    Zwolle, The Netherlands
    Posts
    73

    Default Re: Base tag not working

    Quote Originally Posted by Vera
    Can you confirm you have this problem with the online demo as well? If not, then it is your TL setup which has a problem.
    I made a clean install with the TL demo on my localhost, and that works fine in IE (actually, that shouldn't be surprising). It must definitely be a problem with my TL setup, maybe something went wrong after I upgraded to 2.8.1.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •