Login link that returns to same page
Ferguson
Registered Users Posts: 1,345 Major grins
I feel like I'm missing something really obvious.
I've built a login link at the bottom of the page which replaces the powered-by with a smugmug login (or log out if you are already in) link, which I find more useful (and still provides some branding).
It looks like this:
<a class="leflogin" href="https://secure.smugmug.com/login?goTo=http://www.captivephotons.com/">Login</a>
Is there something I can replace the goTo target with which will say "return to this specific page", given that I cannot use javascript? I.e. a link to "this page" which survives the login process so I return back to this page?
0
Comments
I tried that last year or so and could not get it to work either. What however does work is adding the Login to your menu (there is an option for that in the menu customization), that way it also changes to Logout if you already are logged in. Maybe that could do the trick for you too?
Good luck
Lille Ulven
Thanks, Lille, that does work, though my menu is getting too wide now. Which brings up another question I'll post separately.
Anyone else ever find a magic way to make this work in a user embedded link?
Maybe worth a try: use "." as the goto link like so
<a class="leflogin" href="https://secure.smugmug.com/login?goTo=http://www.captivephotons.com/.">Login</a>
But it could also cause you to go back to the login page - I haven't tested it
Good luck anyway
Lille Ulven