With pathauto in core, we get pretty, SEO-friendly paths for our content. While the path works fine for the "View" tab (you get www.example.com/test-page
for example), the "Edit" and "Revisions" tabs (as well as other tabs/paths added by contrib modules, like the "Devel" tab) are still in the form of www.example.com/node/1/edit
, www.example.com/node/1/revisions
, www.example.com/node/1/devel
. We should have them be www.example.com/test-page/edit
, www.example.com/test-page/revisions
and www.example.com/test-page/devel
respectively.
There are a few modules that implement this in Drupal:
Sub-pathauto (Sub-path URL Aliases) has more than 9000 installations, is minimally maintained, with last commit in the 7.x branch back in 2013, and has 24 pending issues in the 7.x queue (). Clearly this one seems to be the choice of many, so there must be a reason. It seems to have a known issue that depends on a core issue (#1419).
Extended Path Aliases has close to ~3000 installations, actively maintained status, last commit in the 7.x branch about 2 years ago, with 8 open issues in the 7.x queue. This one is my personal favorite for the simple reason that it worked without dramas out of the box when I tested it many years ago, and has been working perfectly for the sites I needed it.
[edit] the reason why this module works where Sub-pathauto and others fail (due to the core bug I mentioned I guess), is because it relies on php runkit. We should fix core so that the 3rd party dependency is not a requirement (hard to get runkit on shared hosting).
Recent comments
Hi @Gnome and welcome to Backdrop When I create custom layout templates I put them in /layouts/custom/my_layout Note: you can split modules and layouts between contrib and custom...
My layout template (layout--blog.tpl.php) doesn't work
This post explains how to do this in Drupal 7. In Backdrop, File Entity is already part of core. You will need to download and install module Views Field View. https://drupal.stackexchange...
I Need to Display an Image in a View that was Uploaded to a Webform
After alot of trials, i have done the obvious and translated the whole block for different languages with each property condition as follows: ->propertyCondition('langcode', 'en...
How to get the current page language?