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 URL | Internal Route |
---|---|
user/signup | User Signup page |
cart | Cart page |
user/login | User Login page |
logout | User Logout page |
user/forgotpassword | Forgot 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-us | About Us page |
contact | Contact page |
location | Store Locator page |
myaccount | My Account page |
checkout/{orderId} | Checkout page |
checkout/{orderId}/confirmation | Order 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.