When a site doesn't redirect you to where you were after it nags you to log in to see content

God I hate this! Never fails, either. I'd be on a page of someone's profile or some piece of content I'd like to see but I'm required to log in. Okay, I will do so. So I do and it doesn't redirect me back! It just puts me in the front page, like no thanks, just bring me to where I was!

403 points · 14 comments · view on lemmy.world

14 Comments

redcalcium@c.calciumlabs.com · 54 pts · 3y (2 replies)

Went to hackernews the other day. Tried to upvote a comment, then it asked me to login. Put in my login, hit the button, and boom, it redirected back to the original page, and the comment I was attempting to upvote is successfully upvoted! I was expecting I'll need to press the upvote button again, but I don't even need to do that. My mind was blown. Wish more websites do this.

Zak8022@kbin.social · 5 pts · 3y

This is really how all sites should work.

tryagain@lemmy.world · 4 pts · 3y

It's a great predictor of how the rest of your interaction with a site will go. If a dev doesn't have the space and motivation to give a shit about details like this, they'll cut corners on other shit too. It doesn't always mean they're bad developers; more often they're just rushed.

zcd@kbin.social · 27 pts · 3y (1 reply)

Login to see content? Throw it in reverse meme

MothrOfChrst@kbin.social · 4 pts · 3y

Yeah that's almost always going to be a hard pass from me lol

Tolstoshev@lemmy.world · 22 pts · 3y

There’s always an XKCD

https://xkcd.com/869/

Crow@lemmy.world · 14 pts · 3y (1 reply)

Or when clicking the link to use your countries version of the site sends you to the home page…

DarthBueller@lemmy.world · 6 pts · 3y

Every few months Amazon or AliExpress will think I’m German or Spanish with no action on my part whatsoever.

Still@programming.dev · 5 pts · 3y (1 reply)

do you happen to have one of those no tracking link browser extensions? I've had a few of those remove the redirect from the log in page url

eric5949@cloudaf.site · 4 pts · 3y

I use Firefox so maybe their built in stuff is doing it for me.

donalonzo@lemmy.world · 4 pts · 3y
[ removed ]
intensely_human@lemm.ee · 3 pts · 3y

Oh my god it’s fucking horrible. And so straightforward to fix.

  • oh noes! unauthorized!
  • store current path in a session variable
  • redirect to authentication
  • upon successful authentication, check if that session variable’s got a path in it
  • if it does, redirect to that
Gazumbo@lemmy.world · 3 pts · 3y

Yep, infuriating. It just happened with me. Googled something, followed a link to a website. I couldn't see images on forum lthread there without registering. So I register, that of course takes me to the home page on the forum instead.