docs(frontend-setup): document window.route() helper requirement#11
Open
docs(frontend-setup): document window.route() helper requirement#11
Conversation
The shared Escalated frontend calls Ziggy's route(name, params) helper in 77 components. Laravel hosts get it for free; non-Laravel hosts must ship a compatible shim against their own named-route table, or install Ziggy directly if it's compatible. Also mention the safety stub EscalatedPlugin.install() now installs when no window.route is present — it throws a descriptive error rather than a bare ReferenceError, but is not a functional replacement. See escalated-dev/escalated#36 for the plugin-side change.
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The shared Escalated frontend calls Ziggy's
route(name, params)helper in 77 components. Laravel hosts get it for free via Ziggy; non-Laravel hosts must ship a compatible shim against their own named-route table. This was previously undocumented and caused crypticReferenceError: route is not definedcrashes for anyone setting up on Rails / Django / NestJS / etc.New "4. Provide a `window.route()` helper" section in frontend-setup explains:
EscalatedPlugin.install()installs on hosts that haven't provided oneRelated
docs/superpowers/plans/2026-04-24-public-tickets-rollout-status.md) flags the Ziggy route() helper dependency as the last remaining deferred follow-upTest plan