Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
66d0dbb
Expose state related to navigations
DAreRodz Jan 29, 2024
07bbaad
Remove loading bar and aria region from query block
DAreRodz Jan 29, 2024
e56191d
Implement wp-router-region processor
DAreRodz Jan 29, 2024
c2ab4d2
Remove aria regions and loading bar logic from query block
DAreRodz Jan 29, 2024
e0fecdc
Move loading bar CSS from query to router region processor
DAreRodz Jan 29, 2024
020e9c2
Recover `navigatingTo` variable
DAreRodz Jan 29, 2024
f45282b
Fix flaky test
DAreRodz Jan 29, 2024
2f95ca7
Remove unnecessary PHPUnit checks
DAreRodz Jan 29, 2024
eb65d2b
Ensure the callback is executed once
DAreRodz Feb 1, 2024
6ab84a1
Update boolean flags and message only if page exists
DAreRodz Feb 1, 2024
1c4445f
Clarify usage of unresolved promise
DAreRodz Feb 1, 2024
f207a79
More code reordering
DAreRodz Feb 1, 2024
56225f5
Save current link URL after navigating
DAreRodz Feb 1, 2024
04ce0dd
Add topLoadingBar and screenReaderAnnounce options
DAreRodz Feb 2, 2024
8217089
Fix url updating after navigating back or forward
DAreRodz Feb 2, 2024
196634c
Rename internal `url` variable to `pagePath`
DAreRodz Feb 2, 2024
4e7660f
Always set a string in `state.url`
DAreRodz Feb 2, 2024
ab00ba8
Remove confusing comment
DAreRodz Feb 2, 2024
1960203
Use internal state instance instead of `wp_interactivity_state`
DAreRodz Feb 2, 2024
a13b08c
Add id to the router animations style tag
DAreRodz Feb 2, 2024
9917541
Test the `data-wp-router-region` directive processor
DAreRodz Feb 2, 2024
e63e717
Rename topLoadingBar option to loadingAnimation
DAreRodz Feb 2, 2024
7d64b03
Update docs for options.loadingAnimation
DAreRodz Feb 2, 2024
bd3842c
Move router-region flag to the WP_Interactivity_API class
DAreRodz Feb 2, 2024
e08f981
Fix screenReaderAnnouncement name
DAreRodz Feb 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Always set a string in state.url
  • Loading branch information
DAreRodz committed Feb 2, 2024
commit 4e7660f162e80f63eb462388645ae85145ca1645
2 changes: 1 addition & 1 deletion packages/interactivity-router/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ window.addEventListener( 'popstate', async () => {
if ( page ) {
renderRegions( page );
// Update the URL in the state.
state.url = window.location;
state.url = window.location.href;
} else {
window.location.reload();
}
Expand Down