Enable Navigation#
Svelte navigation is optional. Enable Prewarm and swap same-site page navigations in TemplateX > Settings > Tweaks when normal same-site links should prewarm and swap safely.
When it is enabled, TemplateX prewarms safe same-site links on hover, press, focus, or touch. A click can reuse the prepared page body, update browser history, and mount any TemplateX islands on the new page.
Native Routes Stay Native#
TemplateX keeps native browser navigation for routes where WordPress or commerce plugins should own the full request:
- WordPress admin
- login and account pages
- cart and checkout pages
- order pages
- URLs with
?add-to-cart=
Use Svelte navigation for ordinary content links. Leave transactional and admin routes to the browser.