[wp-trac] [WordPress Trac] #54384: Hashtags not allowed with wp-login.php?redirect_to

WordPress Trac noreply at wordpress.org
Fri Nov 5 16:21:58 UTC 2021


#54384: Hashtags not allowed with wp-login.php?redirect_to
------------------------------------+-----------------------------
 Reporter:  artifexmedia            |      Owner:  (none)
     Type:  defect (bug)            |     Status:  new
 Priority:  normal                  |  Milestone:  Awaiting Review
Component:  Login and Registration  |    Version:
 Severity:  normal                  |   Keywords:  needs-patch
  Focuses:  accessibility           |
------------------------------------+-----------------------------
 Hi,

 With wp-login.php it is not possible to use an url with an hashtag in it,
 referring to what possibly would be an HTML section or an anchor tag.

 For example:
 Referral url: https://domain.com/dashboard/filemanager/#folder_1

 Gets transformed into:
 https://domain.com/dashboard/

 But all other urls, such as:
 https://domain.com/category/item/page/1

 Etc., will be kept clean and have no problems at all.

 The problem with this might be that you cannot write a function to
 redirect afterwards, as the **?redirect_to** parameter gets writting
 directly into the hidden **redirect_to <input>** and will be used with the
 **login_redirect** hook.

 From there, the url is already misformed.

 Solution-wise, I've taken almost all Google now and all solutions have
 been provided but they are all solutions to redirect or change the URL
 after it has already been misformed because it is already being misformed
 while placed into the **<input>**, so I am out of solutions and I am
 pretty sure it is in fact a bug?

 I do understand this might not be taken as a bug but rather as an
 enhancement, but I think for user accesibility - it is a bug.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54384>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list