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 #2760: Path params trailing slash #3065

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sam-briggs-depop
Copy link

@sam-briggs-depop sam-briggs-depop commented Sep 11, 2024

As reported in #2760, if a URL has a trailing slash and also contains
path parameters then the original logic had a bug that would drop the
trailing slash.
This implements the fix proposed by @ThenTech.

Description

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

@sanjai0py
Copy link
Collaborator

sanjai0py commented Sep 11, 2024

Hey @sam-briggs-depop can you please provide the correct link to the issue?

Edit: No worries I got it. It's #2760.

@briggySmalls
Copy link

Oh drat. Sorry. got my numbers mixed up 😓

@sam-briggs-depop sam-briggs-depop force-pushed the bugfix/2670-path-params-trailing-slash branch from c080f62 to 3bd9432 Compare September 11, 2024 13:05
@sam-briggs-depop sam-briggs-depop changed the title Fix #2670: Path params trailing slash Fix #2760: Path params trailing slash Sep 11, 2024
As reported in usebruno#2670, if a URL has a trailing slash and also contains
path parameters then the original logic had a bug that would drop the
trailing slash.
This implements the fix proposed by @ThenTech.
@sam-briggs-depop sam-briggs-depop force-pushed the bugfix/2670-path-params-trailing-slash branch from 3bd9432 to 05cf069 Compare September 11, 2024 13:06
@sam-briggs-depop
Copy link
Author

Ok. The references should be fixed now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants