Trailing Slash external URL

Silverstripe Version: 5.2

Question: Redirect is adding trailing slash to the external URLs

Hi there,

I am in the process of upgrading our site running on 4.13 to 5.2. I have the following setting in mysite.yml

add_trailing_slash: true

As a result, even the external URL redirects are also getting a trailing forward slash. This is breaking the flow of SSO and Payment gateway etc.

Is there a way I can have the ‘add_trailing_slash:true’ active but not for external URL’s

Cheers
Raghu

This sounds like a bug. If you can reproduce this in a fresh installation of silverstripe/installer, please raise an issue in GitHub with very clear reproduction steps.

Hi Guy,

looks like there is already an issue for it.

Trailing slash also added to external redirects · Issue #11151 · silverstripe/silverstripe-framework (github.com)

1 Like