Add trailing slash /

Created on 17 January 2018, almost 7 years ago
Updated 6 August 2024, 5 months ago

We are having an issue where we can't create links relative to current page because there are no trailing slashes at the end of URL.

For example:

If you have domain.com/fruits/apple
and in that page you want to create a link to TIPS by adding a href="TIPS" or href="./TIPS", you can't.

Because you will end up at
domain.com/fruits/TIPS
instead of the intended path
domain.com/fruits/apple/tips

Which would only work properly if the current page URL was:
domain.com/fruits/apple/
and not domain.com/fruits/apple

In this case, we are working with taxonomy term pages, but the same applies to any Drupal page.

Can we make the redirect module support trailing slashes? I can see that the Global Redirect had support for this.

Or is this something that can / should be set in htaccess?

Any help is greatly appreciated.

πŸ› Bug report
Status

Postponed: needs info

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States tepelena

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