Created on 3 March 2008, over 17 years ago
Updated 21 March 2023, over 2 years ago

What is the problem to solve?

Pathauto is used on almost 75% of all Drupal sites โ†’ , and is essential for SEO-and-user-friendly URLs. It would be good to get it into Drupal Core if possible.

Who is this for?

  • Content authors
  • Site builders
  • Site owners

Result: what will be the outcome?

  • Site builders will no longer need to install an extra "top 5" module on the majority of their sites.
  • Drupal will ship with better SEO out of the box, which is important to site owners.
  • Content authors will save time in creating content because paths will be figured out automatically.

How can we know the desired result is achieved?

Pathauto module and Token no longer needs to be maintained in contrib for Drupal 8.

Problem/Motivation

Use cases:

  • URLs like node/8765 are unintuitive and provide no meaningful context. Core's Path module lets you create aliases, while Pathauto automatically creates SEO-friendly aliases based on token patterns.
  • A typical pattern for pages is /[node:title], and for other content types, /[node:type]/[node:title] (e.g. /article/how-to-program; /project/drupal.
  • Blog articles: people often want the year or some other date component in the URL, such as /blog/[date:YYYY]/[node:title].
  • Users and taxonomy terms: /user/[user:name] and [taxonomy:vocabulary]/[taxonomy:term-name].

These use cases cover most sites' needs.

Proposed resolution

Add the ability to have URL alias patterns to Drupal Core.

Remaining tasks

Here is what would need to be done to get Pathauto into core, along with some notes about when each item is needed (before the API/Feature freeze, or can it wait for clean-up phase):

User interface changes

New UI for assigning automatic URL aliases to entity paths. New UI for tokens. Field for URL aliases for entities.

API changes

Some new tokens would be introduced (see Remaining tasks). No changes to existing APIs.

Related issues

#1726734: Replace serial entity IDs with UUIDs in URLs, or even globally? โ†’

โœจ Feature request
Status

Needs work

Component

Proposed Plan

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States sparkguitar05

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024