Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix URL seralizing of trailing slashes after adding paths #19252

Merged
merged 4 commits into from
Jul 26, 2023

Conversation

paescuj
Copy link
Member

@paescuj paescuj commented Jul 26, 2023

Fixes #19250

Bug introduced with #19210, which missed the recheck for trailing slashes when using the addPath method.

Extensions rely on this util to compute the URL of shared deps:

const depUrl = new Url(env['PUBLIC_URL']).addPath('admin', 'assets', depName);

Since the PUBLIC_URL defaults to /, depUrl always ended up with a trailing slash while actually intended to point to a file.

@changeset-bot
Copy link

changeset-bot bot commented Jul 26, 2023

🦋 Changeset detected

Latest commit: 0eda15c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@directus/api Patch
directus Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@paescuj paescuj requested a review from br41nslug July 26, 2023 13:46
@paescuj paescuj requested review from a team, rijkvanzanten and azrikahar and removed request for a team July 26, 2023 13:54
@rijkvanzanten
Copy link
Member

Whoooops cc @amerkay 😄

@rijkvanzanten rijkvanzanten merged commit 479c5b5 into main Jul 26, 2023
7 checks passed
@rijkvanzanten rijkvanzanten deleted the fix-url-add-path branch July 26, 2023 14:28
@github-actions github-actions bot added this to the Next Release milestone Jul 26, 2023
br-rafaelbarros pushed a commit to personal-forks/directus-source that referenced this pull request Nov 7, 2023
…9252)

* Fix URL seralizing of trailing slashes after adding paths

* Create rare-shrimps-rescue.md

* Clean-up

* More precise changeset summary
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom modules disappeared in v10.5.0
2 participants