WordPress.org

Make WordPress Core

Opened 10 months ago

Last modified 3 weeks ago

#48367 new defect (bug)

wp-admin wrong links when doing php serve

Reported by: eduardoarandah Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version: 5.2.3
Component: Administration Keywords: needs-patch reporter-feedback
Focuses: Cc:

Description

Run a wordpress site locally with:

sudo php -S mysite.local:80

Login and navigate to:
http://mysite.local/wp-admin

wp-admin shows wrong menu links when URL don't have an ending /
http://mysite.local/wp-admin

menu links are correct when URL is like:
http://mysite.local/wp-admin/

menu links are also correct when URL is:
http://mysite.local/wp-admin/index.php

Example of wrong link:
http://mysite.local/options-general.php

instead of:
http://mysite.local/wp-admin/options-general.php

Change History (1)

#1 @donmhico
3 weeks ago

  • Keywords reporter-feedback added

Hello @eduardoarandah,

Thanks for the ticket and welcome in the WordPress Trac. I tried to replicate the issue but whenever I go in http://localhost:8889/wp-admin, i'm getting redirected to http://localhost:8889/wp-admin/

Request URL: http://localhost:8889/wp-admin
Request Method: GET
Status Code: 301 Moved Permanently
Remote Address: [::1]:8889
Referrer Policy: no-referrer-when-downgrade

Maybe you can give us more info about your environment.

Note: See TracTickets for help on using tickets.