I see where the problem is, I can replicate and fix it by changing the URL, but I'm not sure what is actually setting this to go the wrong page. I will try to explain. Keep in mind that this is 2.3.8 and I know it has been a while since we have gone over this but it has reared it's head again and I have journal that is not happy with this not working properly.
So on a journal where viewing the content is restricted to a logged in user, (must be logged in to view content) and you are not logged on the user would click on the "Current" link to the current issue which is the following URL: http://journal.dns.name.org/ojs/index.p ... ue/current
The site would redirect (a few times) and point the user to this next page to login:http://journal.dns.name.org/ojs/index.p ... SiteAccess
Which brings up the login page as expected.
However, the page source now shows the hidden variable set to "/ojs/index.php/journal/user/authorizationDenied?message=user.authorization.restrictedSiteAccess" instead of "/ojs/index.php/journal/issue/current" as I would have expected.
The user would then enter their login and password and of course goes to the following page /ojs/index.php/journal/user/authorizationDenied?message=user.authorization.restrictedSiteAccess which is incorrect.
The user should be taken to the page /ojs/index.php/journal/issue/current as should have been indicated on the first click above.
If I manually change the source parameter to %2Fojs%2Findex.php%2Fjournal%2Fissue%2Fcurrent after clicking on the "Current" link on the first click all goes well and I am redirected to the correct page.
Somewhere along the lines in the redirection it seems that "source" is being replaced with the wrong page. I'm not certain as to where to fix this at as the login function seems to be a bit in both lib/pkp as well as in the ojs tree. I'm willing to try some changes but I'm not quite sure where to make some changes at this point.
I'll continue looking to see if I can follow the logic and find anything that stands out but thought you or one of the other guys would have a suggestion as to where to pinpoint my efforts.