Opened 2 years ago

Last modified 2 years ago

#16581 new enhancement

Meta widget: properly redirect user after logging in / out

Reported by: garyc40 Owned by:
Priority: normal Milestone: Awaiting Review
Component: Widgets Version: 3.1
Severity: normal Keywords: needs-patch
Cc:

Description

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.

Change History (1)

-1. Many people use the meta widget cause they don't know how to get to their admin area otherwise. The logged out link should indeed redirect to wherever they came from. But not the logged in link.

Note: See TracTickets for help on using tickets.