Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status code page, status code: 404, Signing out after posting new or editing title of new post #14

Closed
PRIMETSS opened this issue Oct 27, 2017 · 3 comments

Comments

@PRIMETSS
Copy link

Seem to be able to reliably re-create this.
Believe behaviour only shows for Un-Published Posts

  1. Login
  2. Create new test Post (or change title of existing)
  3. Un-tick Is Published
  4. Save
  5. Signout

Browser is redirected to http://miniblogcore20171027024748.azurewebsites.net/blog/Test/

Status code page, status code: 404

As its not visible to logged out users, as its un-published.

Looks like a Return-Url issue maybe?

(ps: Nice work!)

@madskristensen
Copy link
Owner

I'm not sure what to do about this one. It seems to me the logic is sound, but it would be nice if you saw a proper 404 message. Perhaps a new issue should be opened instead of this one about a missing custom 404 page

@PRIMETSS
Copy link
Author

Yeah not sure what people would expect on signing out after editing or creating an 'un-published' post.
But maybe the returnUrl should be set to the root in this case.
Or even should that just be the normal, and make
<li><a href="~/logout/?returnUrl=/" title="Sign out as administrator">Sign out</a></li>
always return to the root and remove the setting of a path?

@madskristensen
Copy link
Owner

Yeah, it makes sense that logout always takes you to the home page

MattLavalleeMA pushed a commit to MattLavalleeMA/Miniblog.Core that referenced this issue Jun 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants