Direct URL links to protected pages
Permalink
Hi- first post so please forgive me if I have put this in the wrong place, or failed to find an existing solution (in ~30 minutes of searching...)
Anyway, I have a site for a local cub scout pack where 90% of the pages are protected for registered users only. We want to be able to email links to specific pages to parents (say for an upcomming event). Since these pages are typically password protected they are asked to login after clicking the link. After they login correctly they are dropped to the home page for the website, rather than continuing on to their desired destination. Is there any way to fix this? I'm guessing it should be possible to send the desired url to the redirect call, but I really dont have enough PHP experience to figure out how. Thanks for any help!
Anyway, I have a site for a local cub scout pack where 90% of the pages are protected for registered users only. We want to be able to email links to specific pages to parents (say for an upcomming event). Since these pages are typically password protected they are asked to login after clicking the link. After they login correctly they are dropped to the home page for the website, rather than continuing on to their desired destination. Is there any way to fix this? I'm guessing it should be possible to send the desired url to the redirect call, but I really dont have enough PHP experience to figure out how. Thanks for any help!
It's quite a simple fix, but does involve editing at least one core file. Don't worry about that tho, because it sounds like it's going to be in the next release. (Might even be in the latest release already...)
Scroll right to the bottom of the thread for the instructions - post back here if you have any problems implementing it.
Basically what it does: If you try to visit /my_restricted_page and you get asked to login, then after logging in, you will be forwarded to that page instead of the dashboard or home page.
Hope that helps...
jon