Jim Bailie Posted November 7, 2023 Share Posted November 7, 2023 I have a page: "example.com/privatepage" that has a template requiring users with a specific role. But if I type in "example.com/privatepage/some-url-segment" then the page renders!! I'm not seeing an obvious solution in the template settings... Link to comment Share on other sites More sharing options...
da² Posted November 7, 2023 Share Posted November 7, 2023 Hello, I can't reproduce here on PW 3.0.228, what version are you using and are you sure you don't test this page with a superuser (who has access to everything)? 3 Link to comment Share on other sites More sharing options...
Jan Romero Posted November 7, 2023 Share Posted November 7, 2023 Hi, I tried to reproduce this without success (3.0.208 dev). Can you share more about your setup? 3 Link to comment Share on other sites More sharing options...
Jim Bailie Posted November 7, 2023 Author Share Posted November 7, 2023 Thanks. Ok, this is a closed application and there's a 404 redirect in config.php set to go to a page/template with active access control. Therefore if I add a url segment to a protected page/template, it will get 404 redirected to a page/template that should redirect to a login page if there is no active session, but that protected page is rendered instead. I hope this makes sense. It's not the end of the world as I will need to do some checking in the code, but it is unexpected behavior. Link to comment Share on other sites More sharing options...
Jim Bailie Posted November 16, 2023 Author Share Posted November 16, 2023 @JoseFrasher Update: Not really. It is what it is. If you set your 404 page to a page with a protected template, that page will render for Guest and not redirect to the page that it should redirect to **If you have a url segment in the URL**. My solution was to just create a dedicated 404 page with its own template and handle things there. Probably a better approach than what I had originally. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now