developmentseed / scoreboard

Encouraging OpenStreetMap mappers with badges, graphs & stats! ✨🕹
https://developmentseed.org/scoreboard
27 stars 9 forks source link

redirect to page from which the user logged in #199

Open sethvincent opened 5 years ago

sethvincent commented 5 years ago

Right now when we log in we're always redirected to '/'

But if I log in from, say, '/admin/badges' I would rather be redirected back to that page that I was on.

I'm not sure how this might work with osm oauth. There might be a way to pass query params?

kamicut commented 5 years ago

@sethvincent you would need to implement it using the session cookie. I've done something similar in the osm-teams authentication implementation here