use referrer url to redirect when authentication success

How about a this kind of feature?