I seem to remember having something like this before but i cant for the life of me remember what it was....
As a temp workaround you could just redirect to the pageid from the controller - but its not going to give the 401 code to the browser then - even though you get the template. Not sure if this would be an issue for you.
Redirect to 404 Error page from surface controller
Hi! I edit my configuration file /config/umbracosettings.config:
This works fine when I enter a nonexistent url. Now I need to redirect to this error page in my surface controller. I try:
But it doesn't come to the 404 custom page.
I seem to remember having something like this before but i cant for the life of me remember what it was....
As a temp workaround you could just redirect to the pageid from the controller - but its not going to give the 401 code to the browser then - even though you get the template. Not sure if this would be an issue for you.
Is it possible to get pageid error page from my umbracosettings.config?
is working on a reply...