Routes

When a shopper visits your site, the storefront application routes the shopper's request to a page designated by the specific URL or to a Commerce resource determined by a default route. For example, if a shopper clicks a link to a single page on your site or to a web resource like an image file, the storefront application loads the file or page located at the specific location designated by the URL. On the other hand, if a shopper requests a URL that corresponds to one of the default Commerce routes, such as the /cart URL, the storefront application routes the shopper to the resource, which in this example is the Cart page.

Default Routes

The following table lists the default routes available on Commerce sites.

Relative URLInternal Route
user/signupUser Signup page
cartCart page
user/loginUser Login page
logoutUser Logout page
user/forgotpasswordForgot Password page
c/{categoryCode} or {categorySlug}/c/{categoryCode} (if slug is present)Category page
p/{productCode} or {productSlug}/p/{productCode} (if slug is present)Product page
p/{productCode}?vpc={productVariationCode} or {productSlug}/p/{productCode}?vpc={productVariationCode} (if slug is present)Product Variant page
home or /Home page
about-usAbout Us page
contactContact page
locationStore Locator page
myaccountMy Account page
checkout/{orderId}Checkout page
checkout/{orderId}/confirmationOrder Confirmation page

Custom Routes

In addition to the default Commerce routes, you can create your own custom routes for use on your site. To learn about the why and how of custom routes, refer to the Custom Route Settings topic.