URL patterns
URLs on your website are generated by Jadu Central using pattern templates. The pattern used to generate URLs for documents, homepages and category homepages can be configured using the URL Management area.
warning
After adjusting the URL pattern, you will need to update your theme to ensure that routing logic, and the logic that retrieves records based on the URL identifier matches your new URL pattern.
Navigating to the URL Management area
- Click the Settings icon in the left navigation bar. The Settings menu will open.
- Click the URL Management link in the third group of links. The URL management area will now be shown.
URL management fields
Field | Notes | Required? |
---|---|---|
Route name | Associated route name for this URL pattern. Can not be edited in the user interface. | |
Description | Description of the use of this URL pattern. Can not be edited in the user interface. | |
Pattern | Text pattern used to generate URLs of this type. | ✅ |
Destination | Symfony service that is associated with this URL type. | ✅ |
Extra parameter | Additional parameters that should be passed to the URL generating function. | |
Route priority | The order in which routes are matched to incoming requests. Can not be edited in the user interface. |
note
Traffic will not automatically redirect from the old URL pattern to a new URL pattern, manual steps will need to be taken to achieve this.
URL placeholders
Placeholder | Notes |
---|---|
{categoryId} | Category unique id. |
{categorySlug} | Slug associated with the category. |
{documentId} | Document unique id. |
{documentSlug} | Slug associated with the document. |
{homepageId} | Homepage unique id. |
{homepageSlug } | Slug associated with the homepage. |
{pageNumber} | Document page number. |