DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Logging out causes 404 error

 4 Replies
 1 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Author
Messages
Growing Member
Posts: 107
Growing Member

When i logout of dnn 9.8, i hit a 404 error with the following message:

Sorry, the page you are looking for cannot be found and might have been removed, had its name changed, or is temporarily unavailable. It is recommended that you start again from the homepage. Feel free to contact us if the problem persists or if you cannot find what you’re looking for.

I am sure that i caused it by changing home pages. i renamed my old home page, then renamed the new home page, then used the site settings interface to select the new home page. after that logout redirection fails.

i know that i could explicitly set it in site settings, but since i didn't have to do that before, i don't want to do so now. the previous behavior was to stay on the page where logout was invoked.

the url shown when the 404 error is displayed is:
https://www.mydomain.com/tabid/0/Default.aspx

i thought that there were friendly url rewriters at work, but it appears broken at this point.

same problem occurs with login. i would like to direct the user to wherever he was trying to go before being stopped by login.

Growing Member
Posts: 107
Growing Member

the problem seems resolved after doing the following

1. set redirection for login and logout to home  page
2. logout to test
3. set redirection for login and logout to
4. logout -> no more 404 errors
5. login -> no more 404 errors.

 

Veteran Member
Posts: 1246
Veteran Member
MVP
MVP
You're an MVP!
If this happens again, the URL tells you the page causing the problem. In your case the tabid/0 part of the URL says that it is trying to go to the page with tabid equal to zero. You can look this up in the database's Tabs table, and I guess that there is no such tab. Setting the redirects gives you an actual target for the redirection.
Senior Member
Posts: 1325
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!
Veteran Member
Posts: 1182
Veteran Member
MVP
MVP
You're an MVP!
Happened to me too, in DNN 9.8.x so far. Changing the pages (in website settings) to redirect after login and logout to the start page fixed the problem (and if the login was not called from the start page, the redirect is going to the page visited befor, as the querystring obviously overrules the setting).

Yes, this is a bug, but you can use this as a workaround in the meantime.

Happy DNNing!
Michael


Happy DNNing!
Michael

Michael Tobisch
DNN★MVP

DNN Connect

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved