Pathauto can automatically create aliases for the core content types: nodes, taxonomy terms, users, blogs and events either text pages, category terms, users, blogs and events.
The URL (page name) is derived from resp. the title of the page, the category name, user name, blog title, respectively. name of the event.

Step #1. Install the modules

You will need these three modules:

Now, let's see if it's working correctly.

  • Click Content > Add content and choose a content type.
  • Make sure that the "Generate automatic URL alias" box is checked. This should be checked for new content, but you may have to enable it manually for existing content.

How to Use Pathauto in Drupal 8

Step #2. Create the Pathauto patterns

  • Go to Configuration > URL aliases > Patterns.
  • Click "Add Pathauto pattern".

In this example, we'll create a pattern for our Drupal content.

  • Pattern type: choose "Content".
  • Path pattern: click the "Browse available tokens" link.

You'll see a pop-up box with tokens that you can use. For example, if you want to use elements from your content to create URLs for your content, click "Nodes". Underneath, you will see

In this example, I'm going to use the content type and the Node ID. This will create URLs like this: /articles/1/.

So, in "Path pattern", I enter [node:content-type] and also [node:nid]. The exact format I choose isĀ [node:content-type]/[node:nid]

  • Content type: Check all your content type boxes.
  • Label: Choose a name for this pattern. Only admins will see this.

Step #3. Generate the URLs

Now we need to generate the URLs for our existing content.

  • Click the "Bulk generate" tab.
  • Check the "Content" box.
  • Click "Update".

Image removed.

  • Click the "List" tab and you should see your new URL aliases: