Developer forum

Forum » CMS - Standard features » Default behavior when accessing a restricted page as anonymous user

Default behavior when accessing a restricted page as anonymous user

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have a situation with a project running on DW 9.12.10 with Swift.

In some situations, if a user is logged in and on a restricted page (like order history) if the user is logged out for some reason, and tries to access the page again, we get a nasty yellow error (see below).

My expectation was to redirect the user to the login page instead, and the stack trace shows that it may try to do that but for some reason, it fails.

Is there any setting I am missing on the restricted pages? Or some system setting?

Thank you,
Adrian

 

 


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

I believe this is fixed in later versions.

You can add a template to /files/templates/swift/extranet/login.cshtml - and set that on website settings and page settings (login template field) of the page. 

BR Nicolai

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

Thank you for the information

I will try it on our solution.

Thank you,
Adrian

 

You must be logged in to post in the forum