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

using ":slug/edit" without valid user session does not redirect to post edit page after login #91

Open
kabukky opened this issue Jan 18, 2017 · 0 comments
Labels

Comments

@kabukky
Copy link
Owner

kabukky commented Jan 18, 2017

As written by @blockloop in #65 :

In Ghost, when viewing a blog post you can append "/edit" to the end of the url to edit it (assuming you're logged in). This adds that ability to Journey. The only problem I found was as follows.

  1. User is not logged in
  2. User appends /edit to blog url
  3. User gets sent to login page
  4. User logs in
  5. User sees admin page instead of going to edit post page

This is caused by the usage of the # fragment which isn't carried across the login page. I tinkered with fixing it but r.URL.Fragment was always empty in all handlers. I imagine this is a good first step even without that.

@kabukky kabukky added the bug label Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant