openlibhums/typesetting

Logging in after following a Janeway link removes the journal code from the URL

Closed this issue · 0 comments

Logged originally by @pgoussy in openlibhums/janeway#3002

Describe the bug
It appears that if you need to log in after navigating to a non-public Janeway link, instead of being redirected back to the original URL, you are redirected to a new URL that is identical except that it is missing the journal code - which makes it appear to be a "Page Not Found" on the publisher's Janeway site.

Janeway version
1.4.2

To Reproduce
Steps to reproduce the behavior:

  1. Log out of Janeway (or open an incognito window)
  2. Click this link: https://journals.publishing.umich.edu/ptpbio/plugins/typesetting/preview_galley/article/2103/galley/966/#heading7
  3. Log in to Janeway
  4. Note that the URL you're redirected to is https://journals.publishing.umich.edu/plugins/typesetting/preview_galley/article/2103/galley/966/#heading7 - the same URL but without the ptpbio journal code

Expected behavior
After logging in, user should be redirected to the same URL they initially tried navigating to.

Screenshots
Here is a screen-recording of me demonstrating what I encountered: https://www.screencast.com/t/dq7Y7DnMXa