Problem Relative Links, IE [message #30390] |
Wed, 22 February 2006 10:07 |
horst
Messages: 2 Registered: February 2006 Location: Germany
Karma: 0
|
Junior Member |
|
|
I've already seen some post's concenring this problem but the
hints did not solve our problem.
We've used FUDforum 2.3.4 with relative links (WWW_ROOT = /FUDforum2/) without problems. To get popup windows (like password change) working we commented 'BASE HREF' out in header.tmpl (header_plain).
Now we've upgraded to 2.7.4 and relative links are not working via IE (all links are http:///FUDforum2/).
Because our site is reachable under 2 addresses via http and https I cannot change WWW_ROOT in GLOBALS.php to "http://" . $_SERVER['HTTP_HOST']."/";
If I set WWW_ROOT without 'http://' I can reach our site via https but all links are still http://
Can anyone help ?!
Thanks
Horst
|
|
|
Re: Problem Relative Links, IE [message #30395 is a reply to message #30390] |
Wed, 22 February 2006 15:18 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
If your base href is set to just /FUDforum2/ (you can do that by editing header.tmpl) it should work fine. When forum accessed via https:// all links will be https, when accessed via http:// all links will be http
FUDforum Core Developer
|
|
|
|
|
|
|
Re: Problem Relative Links, IE [message #31098 is a reply to message #31088] |
Sat, 01 April 2006 18:02 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Inside the HTML <head> block you should have a tag such as:
<BASE HREF="http://fudforum.org/forum/">
If you do not, that could explain your JavaScript troubles. The value of the href attribute should be the full URL of your forums.
You can check for the presense of this tag by doing view source in your browser on any of your forum's pages.
FUDforum Core Developer
|
|
|
Re: Problem Relative Links, IE [message #31538 is a reply to message #31098] |
Thu, 04 May 2006 21:31 |
empororvader
Messages: 7 Registered: March 2006 Location: Brentwood TN
Karma: 0
|
Junior Member |
|
|
The <base href='MYSITE-URL'> trick worked for a while... And after about two or so weeks, the problem has reappeared. I verified that the base tag is still in the code template for that page. It still crashes IE...again Mozilla Firefox is not affected. Does this tag need to be anywhere else?
[Updated on: Thu, 04 May 2006 21:32] Report message to a moderator
|
|
|
|
|
Re: Problem Relative Links, IE [message #31607 is a reply to message #31580] |
Tue, 09 May 2006 22:20 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
base tag crashing IE? Hrm does it happen for you in this forum, as it uses base href tag quite extensively. I have never seen base href tag being a cause of a crash, but it could be a contributing factor in combination with something else.
FUDforum Core Developer
|
|
|
Re: Problem Relative Links, IE [message #31610 is a reply to message #31607] |
Tue, 09 May 2006 22:39 |
empororvader
Messages: 7 Registered: March 2006 Location: Brentwood TN
Karma: 0
|
Junior Member |
|
|
Well, I am not saying that the <base href='...'> tag is the cause of IE crashing. I was just confirming that it was present. It was suggested to confirm the header contained this tag...and then to verify it was in each template. I was simply answering that it was within the templates and our template. I also verified the href-URL was correct. Mozilla has no problem either way. IE crashes either way.
What is funny is that for a small time, it was fixed, then came back. It came back about a week later. Could a recent Java update that WINDOWS XP updates regularly have imposed a new problem or backstepped to it?
UPDATED: I just confirmed the error does not happen through this forum.
For my information, would having two <base> tags nested cause a problem? Of course, it seems odd that this is the one and only forum bug we have...I would think if nested templates were a problem, more would go wrong than one very specific and not always performed set of tasks. Below might help you understand what I'm refering to:
//our general template that contains the forum output...
< html>
< head>
< base.....>
< /head>
< body>
.
.
.
//general and dynamic code within our template
.
.
//FUD TEMPLATE picked by FORUM coding inserted in our template
< html>
< head>
< base.....>
< /head>
< body>
.
//FUD coding here
.
< /body>
< /html>
//TEMPLATE DONE....entire forum output placed in our template
//back to our coding and template form...mainly our page footer
.
.
.
< /body>
< /html>
[Updated on: Tue, 09 May 2006 22:58] Report message to a moderator
|
|
|
Re: Problem Relative Links, IE [message #31623 is a reply to message #31610] |
Wed, 10 May 2006 12:59 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
If you have >1 base href tag, the browser would normally pick and use the one that appears later. But, it is possible that this combination is causing IE to misbihave, perhaps you may want to save the HTML code of one of the forum pages on your site and play with values to try to identify if >1 base tag is the source of the crash.
FUDforum Core Developer
|
|
|