--- title: HardcodedRoutes description: >- This check is aimed at encouraging use of the routes object instead of hardcoding URLs. source_url: html: >- https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/hardcoded-routes md: >- https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/hardcoded-routes.md --- ExpandOn this page * [Examples](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/hardcoded-routes.md#examples) * [Disabling this check](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/hardcoded-routes.md#disabling-this-check) # HardcodedRoutes Encourages use of the [routes object](https://shopify.dev/docs/api/liquid/objects/routes) instead of hardcoding URLs. This helps ensure that themes can support multiple languages, as well as any possible changes in URL format. *** ## Examples The following examples contain code snippets that either fail or pass this check. ### ✗ Fail The following example includes the hardcoded route `/search`: ```liquid