Make WordPress Core

Opened 4 years ago

Last modified 3 years ago

#48367 new defect (bug)

wp-admin wrong links when doing php serve

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


Run a wordpress site locally with:

sudo php -S mysite.local:80

Login and navigate to:

wp-admin shows wrong menu links when URL don't have an ending /

menu links are correct when URL is like:

menu links are also correct when URL is:

Example of wrong link:

instead of:

Change History (1)

#1 @donmhico
3 years 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.