[wp-trac] [WordPress Trac] #48367: wp-admin wrong links when doing php serve

WordPress Trac noreply at wordpress.org
Thu Aug 24 18:32:53 UTC 2023


#48367: wp-admin wrong links when doing php serve
-------------------------------------------+------------------------------
 Reporter:  eduardoarandah                 |       Owner:  (none)
     Type:  defect (bug)                   |      Status:  new
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  Administration                 |     Version:  5.2.3
 Severity:  minor                          |  Resolution:
 Keywords:  needs-patch reporter-feedback  |     Focuses:
-------------------------------------------+------------------------------

Comment (by markbranly):

 So there are two issues here:

 1. WP //should// redirect to the canonical URL `/wp-admin/'.
 2. The links in the Admin Menu //should// work regardless, as they do in
 the WP Admin Bar.

 As to the latter issue, the links in the Admin Menu are built as relative
 (https://core.trac.wordpress.org/browser/tags/6.3/src/wp-admin/menu-
 header.php#L68), assuming they are in the right directory. But, when the
 redirect fails, they are not. WP Admin Bar does not make this assumption
 and generates absolute URLs.

 There is an existing ticket regarding relative links in the Admin Menu
 (#56302) with a proposed fix.

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


More information about the wp-trac mailing list