• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

As designed Same <base> URL on every page

#1
Affected version
1.5.14
XF is emitting a <base> tag that points to the root of the forum on every page, breaking same-document URLs. Full friendly URLs are enabled. Here's an example value of $requestPaths from a visit to /members/ (domain anonymized):
Code:
host: example.com
protocol: https
basePath: /
fullBasePath: https://example.com/
requestUri: /members/
fullUri: https://example.com/members/
It looks like the basePath and fullBasePath are wrong. Let me know if you need more info for debugging.
 

Chris D

XenForo developer
Staff member
#2
This was how it was designed to work and is working correctly.

We acknowledge, however, that it did indeed introduce some limitations, which is why we changed it in XF2. No more base tag!
 

Chris D

XenForo developer
Staff member
#4
The approach wasn't inherently wrong and it meant some things were simpler but it made some things much more inflexible. Was certainly near the top of the list when we had the opportunity to make big changes in XF2.
 

CyberAP

Well-known member
#5
The approach wasn't inherently wrong and it meant some things were simpler but it made some things much more inflexible. Was certainly near the top of the list when we had the opportunity to make big changes in XF2.
For sure one if the greatest changes in XF2.