Commit 7bcecb3
fix: router injection guard was matching __stxRouterConfig as false positive
The guard `template.includes('__stxRouter')` was matching the layout's
`window.__stxRouterConfig` variable, thinking the router was already
injected. Changed to check for the router's actual guard signature
(`__stxRouter)return` or `__stxRouter=true`) instead of a substring.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 4c0c593 commit 7bcecb3
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
672 | 672 | | |
673 | 673 | | |
674 | 674 | | |
675 | | - | |
676 | | - | |
| 675 | + | |
| 676 | + | |
677 | 677 | | |
678 | 678 | | |
679 | 679 | | |
| |||
0 commit comments