Login destination, redirect to original URL after successful login

Suppose I pass a URL aroundhttp://site/staffonly/document24,... which people need to login to view. Currently no mater which login destination is set, if the user loads the URL they are taken back tohttp://site. I dont want to set it to always redirect to http://site/staffonly/document24... either, cause the next time it might be http://site/staffonly/document25...... is there a simple way to set this up without modifying the code in

I would have thought this would be a Fairly common use case?

View Replies:
aryeh replied on at Permalink Reply
the only way i can think of is with modifying the code.
if you would like me to help you with that let me know.
should be very simple.
enlil replied on at Permalink Reply
with 5.6 you could make links like:
site.com/login/forward/[collection id]

users would be directed to the login page and then back to the page from the link.
not sure if it works the same with 5.7 or not.
jubalj replied on at Permalink Reply
Thanks for the reply, but it doesnt seem to work in 5.7, gives the following error:

An unexpected error occurred.
Invalid Authentication Type Handle
jubalj replied on at Permalink Reply
Aryeh, Thanks very much, yes would really appreciate your help on what I need to modify?

I dont mind modifiying the code per se, but the worry I have is that if I later update concrete5 (And the updates seem more frequent with the new release) that I will lose any changes that I've manually made.. Is there a way to avoid updates being overwritten?

I presume changes will be made to the /singlefiles/login.php? Will I need to remember to remake the changes after a future update?
McArtney82 replied on at Permalink Reply
Old post I know, but you can override that single page so you don't have to worry about the upgrade. Just move it to the Application level
muoks replied on at Permalink Reply
This issue is very important for many Concrete5 users! For example I work with a site, where are download pages, which require login. It is not very nice, that I must give this advice: first log in (mysite/index.php/login), then you will be directed to the home page (mysite/) and then you must move to the right, e.g. English page (mysite/en/downloadheaven101) or German page (mysite/de/downloadhimmel101). And the issue is much more important on multilingual site, because the home page is not necessarily in a proper language.

It would be logical, that the landing page would be page, that is determined on the user profile or the page where which the user was trying to enter.
Ta2Ta2 replied on at Permalink Reply

did you manage to fix this?
jubalj replied on at Permalink Reply
I think this is default behaviour now.
Ta2Ta2 replied on at Permalink Reply
Thanks for your reply.

Yes, it is default behavior for webpages but not for downloading files. at least for my case... I'm using