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

[OJS] Returning to search from a search result leads to an expired document #2294

Closed
ajnyga opened this issue Feb 17, 2017 · 5 comments · Fixed by pkp/ojs#2437
Closed

[OJS] Returning to search from a search result leads to an expired document #2294

ajnyga opened this issue Feb 17, 2017 · 5 comments · Fixed by pkp/ojs#2437

Comments

@ajnyga
Copy link
Collaborator

ajnyga commented Feb 17, 2017

Hi,

In OJS3 when you do a search, the form uses POST. This leads to a situation where a user clicks an article title and then tries to return back (using the browser back button like they usually do) to the search results, but ends up in Document Expired page.

This could be easily fixed if the search would use GET instead of POST. Any reasons why it should not @asmecher?

@asmecher
Copy link
Member

GET is fine with me -- IIRC we did this with OJS 2.x. Do you mind submitting a PR? Or I'd be happy to do it too :)

@asmecher
Copy link
Member

Beware of #2300 in fixing this!

@ajnyga
Copy link
Collaborator Author

ajnyga commented Feb 17, 2017

Ok, so #2300 prevents from switching to GET? Or?

@asmecher
Copy link
Member

You can switch to GET, but you'll need to address the way the form action URL is generated. When disable_path_info is on, it'll attempt to use URL parameters, which get clobbered by the form parameters.

@asmecher
Copy link
Member

@ajnyga, I've just fixed #2300 -- that change will need to be ported to the master branch in order to prevent that problem for recurring here when we move to GETs. Not the tidiest solution but plenty effective for the two cases we need it for.

This issue was closed.
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

Successfully merging a pull request may close this issue.

3 participants