Meta widget: properly redirect user after logging in / out
|Reported by:||garyc40||Owned by:|
Inside Meta widget, there's a login link. However, the href attribute doesn't contain a redirection query argument.
So, there's a usability problem when someone is reading a post and want to comment, but can't because he's not logged in (and the blog requires logging in to comment). After logging in using the link inside Meta widget, the user is redirected to the admin area, instead of to the post he was reading. It would be a few clicks too many to go back to the post to comment.
The same thing can be applied to the Log out link (when the user's currently logged in). Instead of showing the blank wp-login.php form, he should be redirected back to the page where he clicked the link.