Fixed Cookie usage information can't be accessed when board is offline

Kirby

Well-known member
Affected version
2.0.6 Beta 2
Description
I've enabled the cookie notice, turned the board off in ACP and accessed the frontend as a guest with a completely empty browser

Expected Result
An error messag telling me that the board is offline is being displayed.
No cookies being set at all or a cookie notice being displayed with an accessible like to a page explaining cookie usage on this website

Actual Result
An error messag telling me that the board is offline is being displayed.
Two cookies (csrf and session) are being set and a cookie notice is being displayed with a link for more information.
When clicking this link, the same output is being generated, eg. it is not possible to read the content of the cookie information page.
 
Last edited:
Made changes here but it will only apply to default/custom help pages so if you use a custom URL for cookies, privacy policy or terms then they may still be unavailable.
 
Thanks for fixing this :)
Is this also fixed in XF 1 (if this bug also existed ther, didn't check)?
Does the fix also work if route filters are bing used for the default pages?
 
Yes and yes. The reason it is tricky to apply it to non-default URLs is because it's handled at the controller level so it's very tricky to apply it to specific URLs. So in this case, it actually applies to all help pages, regardless of the route name and page name.
 
Top Bottom