You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(gatsby): ignore case option in create redirect (#29742)
* Add ignoreCase option for createRedirect and support it in client side navigation
* Add typings for ignoreCase
* Update packages/gatsby/src/redux/actions/public.js
Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
* Prepare lowercased redirects at build time
* Add tests
* Remove only
* Switch to O(1) Maps
* Update navigate as well
* Update packages/gatsby/index.d.ts
Co-authored-by: Ward Peeters <ward@coding-tech.com>
* Update packages/gatsby/cache-dir/navigation.js
Co-authored-by: Ward Peeters <ward@coding-tech.com>
* Set ignoreCase to false by default
* Update snapshot
* toLowerCase not toLowercase fml
Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
Co-authored-by: Ward Peeters <ward@coding-tech.com>
* @param {boolean} redirect.redirectInBrowser Redirects are generally for redirecting legacy URLs to their new configuration. If you can't update your UI for some reason, set `redirectInBrowser` to true and Gatsby will handle redirecting in the client as well.
1300
1300
* @param {boolean} redirect.force (Plugin-specific) Will trigger the redirect even if the `fromPath` matches a piece of content. This is not part of the Gatsby API, but implemented by (some) plugins that configure hosting provider redirects
1301
1301
* @param {number} redirect.statusCode (Plugin-specific) Manually set the HTTP status code. This allows you to create a rewrite (status code 200) or custom error page (status code 404). Note that this will override the `isPermanent` option which also sets the status code. This is not part of the Gatsby API, but implemented by (some) plugins that configure hosting provider redirects
1302
+
* @param {boolean} redirect.ignoreCase (Plugin-specific) Ignore case when looking for redirects
1302
1303
* @example
1303
1304
* // Generally you create redirects while creating pages.
0 commit comments