Hi,

Drupal naturally creates URLs without Trailng slashes, like

example.com/page1
example.com/page2
example.com/page3

For some reasons I would like to have URLs like

example.com/page1/
example.com/page2/
example.com/page3/

Drupal delivers the content as well if you enter a url with a trailing slash, but i want to have the trailing slash as the standard and would also like to have this reflected in the canonical tag, in possible hreflang tags everywhere where drupal creates internal links automatically (menus, xml sitemaps etc.).

For Drupal 7 and below there is the Trailing Slash Module which has not been to ported to Drupal 8 yet. The last D7 Version is from 2012 and knowone seems to works on a D8 port.

My developement skills are way too low to do a port for Drupal 8 on my own.

Does some knows a solution for Drupal 8?

Thank You!

Comments

batkor’s picture

Hi,
You found a way to add a slash

benjen’s picture

Great! What did you do to make it possible?
EDIT:
I just read your comment again and now i am not sure if I understood your comment correctly.
Did you found a way or did you ask if I found a way?

batkor’s picture

ask if I found a way?-:)
Sorry, i'm bad speak english.
I'm trying to contact SAVEL he wrote https://www.drupal.org/node/2841563.
for joint development.