Relative Links [message #29662] |
Sun, 08 January 2006 12:27 |
pisi
Messages: 7 Registered: January 2006
Karma: 0
|
Junior Member |
|
|
I need FUD-Forum to use relative Links, because it must be reachable by multiple Host-names (internal URL, external URL, ssl, non-ssl).
The used Version is 2.7.3.
If I set then it works perfectly in every Browser, except IE.
IE is not able to handle.
It also seems, that this is not W3C conform usage of the BASE-tag.
What is the correct way to make FUD-Forum use relative Links?
I apologize if this Question is already answered elsewhere and I did not found it, but please denote me the place where to find the answer.
|
|
|
Re: Relative Links [message #29675 is a reply to message #29662] |
Mon, 09 January 2006 14:56 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Rather then doing what you did you can make PHP retrieve the hostname and populate the WWW_ROOT with it. One suggestion would be to modify GLOBALS.php to have WWW_ROOT = "http://" . $_SERVER['HTTP_HOST']."/";
FUDforum Core Developer
|
|
|
|
Re: Relative Links [message #29679 is a reply to message #29677] |
Mon, 09 January 2006 15:09 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Well, the only place where the full url is used is for HTTP redirects. You can do a slight modification to the compiler.inc and make it replace the {FULL_ROOT} with '.$GLOBALS['WWW_ROOT'].' rather then its value.
FUDforum Core Developer
|
|
|
|
Re: Relative Links [message #29711 is a reply to message #29707] |
Tue, 10 January 2006 15:23 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Base href normally contains the entire WWW_ROOT which is http://...
it is used to have the browser automatically prefix all links with the forum's location. This allows links to be much shorter, especially when the forum is installed in a separate directory.
FUDforum Core Developer
|
|
|