[wp-trac] [WordPress Trac] #64649: Interactivity API: Initialize router's `state.url` on the server

WordPress Trac noreply at wordpress.org
Tue Feb 17 08:45:26 UTC 2026


#64649: Interactivity API: Initialize router's `state.url` on the server
--------------------------------------+--------------------------
 Reporter:  luisherranz               |       Owner:  luisherranz
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  7.0
Component:  Interactivity API         |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------------
Changes (by luisherranz):

 * owner:  (none) => luisherranz
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"61659" 61659]:
 {{{
 #!CommitTicketReference repository="" revision="61659"
 Interactivity API: populate router's `state.url` in the server

 Set the `core/router` state `url` property with the current page URL using
 `get_self_link()` when the first `data-wp-router-region` directive is
 processed, so that the stores subscribing to that property already have
 the correct value on page load.

 Props westonruter.
 Fixes #64649.
 }}}

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


More information about the wp-trac mailing list