How to generate content and category pages URLs in Drupal?

Why?

To reduce the server load when a visitor navigate through the website we setup a way to generate the URL directly from the content/category page.

How?

The page URL is now generated from 2 fields displayed in Drupal: Parent field and Slug field

Parent field

Slug field

In the slug field, you can fill in the slug of your new page. 

  • If you fill in the slug yourself, you should also enter the dashes.
  • If you leave the field empty, Drupal will automatically use the title of the page to fill in the slug field. This happens after saving the page.

Example

For the URL to display https://sdworx-lms-nextjs-be.acc.reference.be/nl-be/opleidingen/opleidingen/sectorale-info it would need to be set as below:


How did we do?


MarTech Academy (opens in a new tab)

Powered by HelpDocs (opens in a new tab)