As designed Same <base> URL on every page

llk

Member
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.
 
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!
 
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.
 
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.
 
Top Bottom