Skip to content

Add prefix-without-leading-slash to s3 URLs#126

Open
josuealcalde-utamed wants to merge 1 commit intozenstruck:1.xfrom
josuealcalde-utamed:path-without-leading-slash
Open

Add prefix-without-leading-slash to s3 URLs#126
josuealcalde-utamed wants to merge 1 commit intozenstruck:1.xfrom
josuealcalde-utamed:path-without-leading-slash

Conversation

@josuealcalde-utamed
Copy link

In previous versions, when a prefix is set in flysystem+s3 urls, it preservers a leading slash as first character. In S3 this is not desirable, since it will add a directory with "/" an URLs will result in double slash https://bucket.s3-domain//prefix/...

Since this cannot be fixed without getting a BC, we add a parameter to get a correct behavior.

@josuealcalde-utamed josuealcalde-utamed force-pushed the path-without-leading-slash branch from 396096c to 4863802 Compare January 29, 2026 07:46
In previous versions, when a prefix is set in flysystem+s3 urls, it preservers a leading slash as first character.
In S3 this is not desirable, since it will add a directory with "/" an URLs will result in double slash https://bucket.s3-domain//prefix/...

Since this cannot be fixed without getting a BC, we add a parameter to get a correct behavior.
@josuealcalde-utamed josuealcalde-utamed force-pushed the path-without-leading-slash branch from 4863802 to c6a84bf Compare January 29, 2026 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant