Navigation to unpublished pages

Vote:
 

Hi,

It would appear that when we navigate to a page that is not published or has expired, you are taken to the login screen.

I understand why this is the case, but I wish to know if there is a way to display a 404 page or something similar instead.

We don't really want site visitors accessing the login screen just because they have found a page that is no longer available.

Please help.

Thanks

Carl

#19748
May 01, 2008 18:26
Vote:
 

Hello Carl,

Did you get any solutions to this? I'm working with the same issue and are interested in some help.

 

#32740
Sep 15, 2009 15:25
Vote:
 
Have you got a solution for this yet?
#33727
Oct 19, 2009 11:26
Vote:
 

Intriguing problem this - don't have the time to have a go directly, but I would consider trying to implement an Http module that intercepts the request, checks that the current user has Read rights on the page and re-directs to a 404 page if they don't?

A quick and filthy solution might be to change the login URL specified for forms authentication in web.config to a 404 page, but that would be pretty wrong from a usability perspective (i.e. what if you want people to log in?!)

  

#33736
Oct 19, 2009 13:59
Vote:
 

Create your own base class for template pages instead of inheriting directly from TemplatePage.

Override AccessDenied() method in your own base class and decide how you want to handle itinstead of redirecting.

#33762
Oct 19, 2009 22:27
Vote:
 
Guess that would be easier...
#33767
Oct 20, 2009 3:04
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.