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

[Bug Fix] utils/url.js removing trailing slashes #19210

Merged
merged 6 commits into from
Jul 20, 2023
Merged

Conversation

amerkay
Copy link
Contributor

@amerkay amerkay commented Jul 20, 2023

Hi!

TLDR; Url("https://example.com/verify/").toString() returns https://example.com/verify, it removes the trailing slash. It should preserve it. This PR fixes that.

Cheers!

Fixes #19207

Url() now preserves trailing slashes, including root domains.
@changeset-bot
Copy link

changeset-bot bot commented Jul 20, 2023

🦋 Changeset detected

Latest commit: 3f5fd9b

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

Copy link
Member

@paescuj paescuj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@paescuj paescuj requested review from a team, rijkvanzanten, licitdev and jaads and removed request for a team July 20, 2023 10:12
@paescuj paescuj added this to the Next Release milestone Jul 20, 2023
Copy link
Member

@licitdev licitdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amerkay Thanks for the PR! 👍

@paescuj paescuj merged commit 174c9fa into directus:main Jul 20, 2023
7 checks passed
sethkaufee pushed a commit to sethkaufee/directus that referenced this pull request Jul 24, 2023
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
br-rafaelbarros pushed a commit to personal-forks/directus-source that referenced this pull request Nov 7, 2023
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
@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.

Bug in utils/url.js removing trailing slashes
3 participants