--- title: "Liquid objects: routes" description: Allows you to generate standard URLs for the storefront. api_name: liquid source_url: html: https://shopify.dev/docs/api/liquid/objects/routes md: https://shopify.dev/docs/api/liquid/objects/routes.md --- # routes Allows you to generate standard URLs for the storefront. Using the `routes` object instead of hardcoding URLs helps ensure that your theme supports [multiple languages](https://shopify.dev/themes/internationalization/multiple-currencies-languages), as well as any possible changes in URL format. ## Properties * * account\_​addresses\_​url [string](https://shopify.dev/docs/api/liquid/basics#string) * The [account addresses page](https://shopify.dev/themes/architecture/templates/customers-addresses) URL. Redirects to [customer accounts](https://help.shopify.com/en/manual/customers/customer-accounts/new-customer-accounts) when enabled. * account\_​login\_​url [string](https://shopify.dev/docs/api/liquid/basics#string) * The [account login page](https://shopify.dev/themes/architecture/templates/customers-login) URL. Redirects to [customer accounts](https://help.shopify.com/en/manual/customers/customer-accounts/new-customer-accounts) when enabled. * account\_​logout\_​url [string](https://shopify.dev/docs/api/liquid/basics#string) * The URL to log a customer out of their account. Redirects to [customer accounts](https://help.shopify.com/en/manual/customers/customer-accounts/new-customer-accounts) when enabled. * account\_​profile\_​url [string](https://shopify.dev/docs/api/liquid/basics#string) * The URL for the [customer accounts](https://help.shopify.com/en/manual/customers/customer-accounts/new-customer-accounts) profile page. * account\_​recover\_​url [string](https://shopify.dev/docs/api/liquid/basics#string) * The [password recovery page](https://shopify.dev/themes/architecture/templates/customers-reset-password) URL. Redirects to [customer accounts](https://help.shopify.com/en/manual/customers/customer-accounts/new-customer-accounts) when enabled. * account\_​register\_​url [string](https://shopify.dev/docs/api/liquid/basics#string) * The [account registration page](https://shopify.dev/themes/architecture/templates/customers-register) URL. * account\_​url [string](https://shopify.dev/docs/api/liquid/basics#string) * The [account page](https://help.shopify.com/manual/customers/customer-accounts) URL. Redirects to [customer accounts](https://help.shopify.com/en/manual/customers/customer-accounts/new-customer-accounts) when enabled. * all\_​products\_​collection\_​url [string](https://shopify.dev/docs/api/liquid/basics#string) * The all-products collection page URL. The all-products collection is automatically generated by Shopify and contains all products in the store. * cart\_​add\_​url [string](https://shopify.dev/docs/api/liquid/basics#string) * The URL for the [`/cart/add` Cart API endpoint](https://shopify.dev/api/ajax/reference/cart#post-locale-cart-add-js). * cart\_​change\_​url [string](https://shopify.dev/docs/api/liquid/basics#string) * The URL for the [`/cart/change` Cart API endpoint](https://shopify.dev/api/ajax/reference/cart#post-locale-cart-change-js). * cart\_​clear\_​url [string](https://shopify.dev/docs/api/liquid/basics#string) * The URL for the [`/cart/clear` Cart API endpoint](https://shopify.dev/api/ajax/reference/cart#post-locale-cart-clear-js). * cart\_​update\_​url [string](https://shopify.dev/docs/api/liquid/basics#string) * The URL for the [`/cart/update` Cart API endpoint](https://shopify.dev/api/ajax/reference/cart#post-locale-cart-update-js). * cart\_​url [string](https://shopify.dev/docs/api/liquid/basics#string) * The [cart page](https://shopify.dev/themes/architecture/templates/cart) URL. * collections\_​url [string](https://shopify.dev/docs/api/liquid/basics#string) * The [collection list page](https://shopify.dev/themes/architecture/templates/list-collections) URL. * predictive\_​search\_​url [string](https://shopify.dev/docs/api/liquid/basics#string) * The [Predictive Search API](https://shopify.dev/api/ajax/reference/predictive-search) URL. Tip To learn about how to support predictive search in your theme, refer to [Add predictive search to your theme](https://shopify.dev/themes/navigation-search/search/predictive-search). * product\_​recommendations\_​url [string](https://shopify.dev/docs/api/liquid/basics#string) * The [Product Recommendations API](https://shopify.dev/api/ajax/reference/product-recommendations) URL. * root\_​url [string](https://shopify.dev/docs/api/liquid/basics#string) * The index (home page) URL. * search\_​url [string](https://shopify.dev/docs/api/liquid/basics#string) * The [search page](https://shopify.dev/themes/architecture/templates/search) URL. * storefront\_​login\_​url [string](https://shopify.dev/docs/api/liquid/basics#string) * [Customer accounts](https://help.shopify.com/en/manual/customers/customer-accounts/new-customer-accounts) login page. Redirects to the storefront page the customer was on before visiting the login page. ```json { "account_addresses_url": "/account/addresses", "account_login_url": "/account/login", "account_logout_url": "/account/logout", "account_profile_url": "https://shopify.com/56174706753/account/profile?locale=en®ion_country=CA", "account_recover_url": "/account/recover", "account_register_url": "/account/register", "account_url": "/account", "all_products_collection_url": "/collections/all", "cart_add_url": "/cart/add", "cart_change_url": "/cart/change", "cart_clear_url": "/cart/clear", "cart_update_url": "/cart/update", "cart_url": "/cart", "collections_url": "/collections", "predictive_search_url": "/search/suggest", "product_recommendations_url": "/recommendations/products", "root_url": "/", "search_url": "/search", "storefront_login_url": "/customer_authentication/login?return_to=%2Fservices%2Fliquid_rendering%2Fresource%3Ffast_storefront_renderer%3D1&locale=en" } ```