Url not redirects until add / at the end of Url

Created on 8 September 2023, about 1 year ago
Updated 7 August 2024, 4 months ago

I have applied redirect on a page lets example.com/contact/new-arrival/agency redirect to a example.com/contact
redirect does not work until example.com/contact/new-arrival/agency/
there is log error found what we be the issue. other redirects seems to be working fine those redirected to this page
example.com/contact

🐛 Bug report
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

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

Comments & Activities

  • Issue created by @pankaj1390
  • Assigned to viren18febS
  • 🇮🇳India viren18febS

    Checking the issue!

  • Issue was unassigned.
  • Status changed to Needs review about 1 year ago
  • 🇮🇳India viren18febS

    Hi @pankaj1390

    I have checked the above issue in Drupal 9.5 & I am not able to reproduce the issue. It is working as expected for me.

    As per the Drupal, we are not able to save the last backslash of the URL for this.
    example.com/contact/new-arrival/agency/

    If you still have the issue, then please mention the reproduce steps or something more informative.
    I have attached an screen cast for reference.

  • I have the exact same issue but with 8.x-1.9 and D10.
    The redirect doesn't work unless I navigate to the source url with an added slash at the end (even if the slash is NOT in the source url).
    Navigating to the defined source url (without an ending slash) does not trigger the redirect.

  • 🇩🇪Germany Anybody Porta Westfalica
  • 🇺🇸United States jdshaw

    Seconding #4. Running D10.3.1, Redirect: 8.x-1.9

    If a redirect is added for /foo/bar redirecting to /baz, the redirect is not triggered unless one browses to /foo/bar/.

  • 🇩🇪Germany Anybody Porta Westfalica

    Thanks, could someone please provide clear steps to reproduce this in vanilla simplytest.me Drupal?
    Or even better write a test that shows this isssue?

  • Status changed to Postponed: needs info 4 months ago
  • 🇨🇭Switzerland berdir Switzerland

    Sounds like this is a duplicate of 🐛 Redirects from aliased paths aren't triggered Needs review and related issues based on the last paragraph in #6.

Production build 0.71.5 2024