Stuart Wright
Well-known member
So we had a whole bunch of internal links to pages like
href="pages/privacy-policy/"
which are broken with XF2. They need a leading slash
href="/pages/privacy-policy/"
or they 404 page not found.
Is this a Xenforo 2 thing? A setting somewhere?
I think it might be causing a whole bunch of issues because we're getting lots of junk URLs reported in the 404 log.
E.g.
which has a valid URL
with an invalid internal looking URL appended
review/sony-kd-65a1-a1-a1e-bravia-uhd-4k-oled-hdr-tv-review.13313
although
is valid.
Really strange.
Could it be that all non-slash-prefixed links on that page link to the page URL plus the link?
Any idea what the hell is going on?
Similarly inbound links to pages like
without the trailing slash are now broken. Loooooots of links.
With XF1, they appear to have been rewritten to
and worked. Or just worked without the trailing slash.
Again, is this a Xenforo 2 thing or something related to how the server needs setting up now?
Those pages were fine with Xenforo 1.
If it's a case of asking my hosts to alter nginx to append a trailing slash to every inbound url where there isn't one, I can do that.
But I would have thought Xenforo would be able to do it if it's required.
Similar issue mentioned here:
Thanks in advance.
href="pages/privacy-policy/"
which are broken with XF2. They need a leading slash
href="/pages/privacy-policy/"
or they 404 page not found.
Is this a Xenforo 2 thing? A setting somewhere?
I think it might be causing a whole bunch of issues because we're getting lots of junk URLs reported in the 404 log.
E.g.
Code:
https://www.avforums.com/threads/alloy-repair.318860/review/sony-kd-65a1-a1-a1e-bravia-uhd-4k-oled-hdr-tv-review.13313
Code:
https://www.avforums.com/threads/alloy-repair.318860/
review/sony-kd-65a1-a1-a1e-bravia-uhd-4k-oled-hdr-tv-review.13313
although
Code:
https://www.avforums.com/review/sony-kd-65a1-a1-a1e-bravia-uhd-4k-oled-hdr-tv-review.13313
Really strange.
Could it be that all non-slash-prefixed links on that page link to the page URL plus the link?
Any idea what the hell is going on?
Similarly inbound links to pages like
Privacy Policy
www.avforums.com
With XF1, they appear to have been rewritten to
Privacy Policy
www.avforums.com
Again, is this a Xenforo 2 thing or something related to how the server needs setting up now?
Those pages were fine with Xenforo 1.
If it's a case of asking my hosts to alter nginx to append a trailing slash to every inbound url where there isn't one, I can do that.
But I would have thought Xenforo would be able to do it if it's required.
Similar issue mentioned here:
XF 2.0 - Make pages work without trailing slash?
Is there a way to make it so pages will work without a trailing slash? For example, even on this forum https://xenforo.com/community/pages/example-page/ will work while https://xenforo.com/community/pages/example-page will not. I used the route filter to change my example.com/pages/page1 to...
xenforo.com
Fixed - Inconsistent 404 behavior with ending slash in /tags route
404 - https://xenforo.com/community/tags/customization works - https://xenforo.com/community/tags/customization/ works - https://xenforo.com/community/forums/bugs works - https://xenforo.com/community/forums/bugs/
xenforo.com