backdrop / backdrop-issues

Issue tracker for Backdrop core.
144 stars 40 forks source link

Implement sub-path aliases - a.k.a.: `subpathauto` or `path_alias_xt` in core #1418

Open klonos opened 8 years ago

klonos commented 8 years ago

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:

  1. 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).

  2. 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).

klonos commented 5 years ago

...something that we could also address along the way: https://www.drupal.org/project/drupal/issues/1248626

ghost commented 4 years ago

I use one of the above modules on some of my sites, and one of the problems I have is that there's no longer an easy way to find the NID of a node (i.e. can't just hover over the edit link to see it). I've gotten around this by installing the Devel module and using its 'devel' tab on nodes to see the raw data, but perhaps there's a way we can add this information somewhere without requiring a contrib module...?