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

WordPress Trac noreply at wordpress.org
Mon Nov 15 18:34:02 UTC 2021


#54384: Hashtags not allowed with wp-login.php?redirect_to
------------------------------------+----------------------------
 Reporter:  artifexmedia            |       Owner:  (none)
     Type:  defect (bug)            |      Status:  closed
 Priority:  normal                  |   Milestone:
Component:  Login and Registration  |     Version:
 Severity:  normal                  |  Resolution:  invalid
 Keywords:  needs-patch close       |     Focuses:  accessibility
------------------------------------+----------------------------
Changes (by johnbillion):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 @artifexmedia I've tested this with a URL such as `wp-
 login.php?redirect_to=%2Fwp-admin%2Foptions-general.php%23start_of_week`
 (using `%23` for the hash as Henry mentions) and the redirect works as
 expected. If you're using a PHP function to generate the redirect URL you
 need to use `urlencode()` as it's a URL query parameter.

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


More information about the wp-trac mailing list