Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support new brokenRoute parameter in types #257

Closed
lihbr opened this issue Aug 19, 2022 · 1 comment · Fixed by #258
Closed

Support new brokenRoute parameter in types #257

lihbr opened this issue Aug 19, 2022 · 1 comment · Fixed by #258
Labels
enhancement New feature or request

Comments

@lihbr
Copy link
Member

lihbr commented Aug 19, 2022

Is your feature request related to a problem? Please describe.

Following the recent route resolver update, a new brokenRoute API query parameter is available. It allows users to define a fallback URL that will be resolved for fields featuring a broken link. Typical use case would be brokenRoute: "/404" to make all broken links populated with a /404 URL.

Describe the solution you'd like

Support is technically already here, but is not typed.

Type should be brokenRoute?: string

Describe alternatives you've considered

N/A

Additional context

Internal thread: https://prismic-team.slack.com/archives/CB6AJT98F/p1660692486110229

@angeloashmore
Copy link
Member

Implemented in #258 along with the new uid option, pending a review. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants