Route modules
The built-in pages: each is a loader, a head function and a component you can reuse or fork.
Each storefront page (home, product, cart, blog…) is a route module: a loader that fetches the page data, a head that sets the title and meta tags, and a Component that draws it. Your theme gets all of them for free and can replace any part.
Entries
Every built-in page is an object with a loader that fetches its data, a head that sets its tags, and a Component that draws it.
Forking a built-in pageTake over one built-in page: point its path at your own route file, reuse the module's loader and head, and swap or wrap its Component.
HomeThe store's home page: loads the blocks the merchant arranged and draws each one with the component registered for its path.
registerHomeComponents, DefaultHomeComponents, registerHomeComponentConfigThe home block registry, re-exported beside the Home module: register which component draws each kind of block before any page renders.
ProductThe product page: loads one product by id with its breadcrumbs, and gives it full search-engine tags, including schema.org Product data.
ProductListingOne module behind every product grid: categories, search, tags, brand pages, and the latest, best-selling and offers lists.
CartThe cart page, whose loader returns only a title because the visitor's cart id exists in the browser, not on the server.
PageSingleA merchant's content page, such as About us or Terms: loads it by id and shows its HTML and comments.
BlogThe blog home page with featured slides, categories and latest articles, rendering empty lists rather than an error when the blog fails to load.
BlogSingleOne blog article with its related articles, likes and comments, using the article's own SEO title, description and image when set.
BlogAuthorRoute, BlogCategoryRoute, BlogTagRouteBlog article lists filtered by one author, one category or one tag, each with the category sidebar and more articles as the reader scrolls.
BrandsThe A to Z brands directory: every brand logo, grouped by first letter, each linking to that brand's product list.
TestimonialsThe store reviews page, whose loader only sets a title while Salla's comments web component loads and sorts the reviews in the browser.
LoyaltyThe loyalty program page, listing ways to earn points and prizes to redeem, or a 404 page when the store runs no program.
ThankYouThe order confirmation page Salla sends shoppers to after paying, which renders even when the order details cannot be loaded.
Profile, SettingsThe signed-in customer's profile and account settings pages, built from Salla's ready-made web components and refused to guests.
OrdersThe signed-in customer's order history, optionally filtered by status, as a table that loads more orders on request.
OrderSingleOne order's details for its customer: items, amounts, shipping and status, with reorder, cancel, receipt and rating actions.
WishlistThe signed-in customer's saved products, starting from the ?page= in the address and loading further pages as they scroll.
WalletThe signed-in customer's wallet balance and transaction history, starting from the ?page= in the address and loading more as they scroll.
NotificationsThe signed-in customer's notifications, such as order status changes, as one list with read and unread styling.
slugBrandRedirectLoader, pendingOrdersRedirectLoaderLoaders that render nothing and redirect: old /<slug>/brand-<id> links to the brand's product list, and /pending-orders to the orders list.
head (product listing)ProductListing's head function on its own: title, canonical and share tags for any product list, from its category or tag when there is one.
Product listing typesThe pieces of ProductListLoaderData: page metadata, the source and its entity, the sort query and the tag shape, plus an unused category props type.
Blog data typesThe shapes of blog articles, authors, categories and tags that the blog loaders return, for typing your own blog components.
Order, OrderItem, OrderListItemThe order shapes the account and thank-you pages use: a full order, one line of it, and the lighter row the orders list returns.
@salla.sa/twilight-theme-engine/routesA lightweight index of shared route types, locale helpers and one redirect loader; route modules themselves live only on the granular subpaths.
Also exported here
These exports have no page of their own yet. Their signatures, straight from the engine's type declarations, are in the complete list.
| Export | Kind | Import path |
|---|---|---|
useAppliedFilters | hook | @salla.sa/twilight-theme-engine/routes/product-listing |
parseFiltersFromSearch | function | @salla.sa/twilight-theme-engine/routes/product-listing |
AppliedFiltersStatus | type | @salla.sa/twilight-theme-engine/routes/product-listing |