Commit 90e9d51
Preserve URL fragment identifier in history pushState
Two bugs caused fragment IDs (e.g. #select-children) to be stripped when
the SPA rewrites the URL with the current layout mode:
1. ldh:HTMLDocumentLoaded passed only 2 args to ldh:href() when calling
ldh:PushState, omitting the $fragment parameter — the 3-arg overload
appends #fragment only when explicitly supplied.
2. The initial page load called ldh:HTMLDocumentLoaded without an explicit
$href, so it defaulted to ldh:base-uri(.) = ac:absolute-path(ixsl:location())
which strips the fragment before pushState ever runs. Fixed by passing
xs:anyURI(ixsl:location()) directly so the fragment is retained.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 00c745d commit 90e9d51
File tree
1 file changed
+2
-12
lines changed- src/main/webapp/static/com/atomgraph/linkeddatahub/xsl
1 file changed
+2
-12
lines changedLines changed: 2 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| 305 | + | |
305 | 306 | | |
306 | 307 | | |
307 | 308 | | |
| |||
830 | 831 | | |
831 | 832 | | |
832 | 833 | | |
833 | | - | |
| 834 | + | |
834 | 835 | | |
835 | 836 | | |
836 | 837 | | |
| |||
847 | 848 | | |
848 | 849 | | |
849 | 850 | | |
850 | | - | |
851 | | - | |
852 | | - | |
853 | | - | |
854 | | - | |
855 | | - | |
856 | | - | |
857 | | - | |
858 | | - | |
859 | | - | |
860 | | - | |
861 | 851 | | |
862 | 852 | | |
863 | 853 | | |
| |||
0 commit comments