Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix double-slash when basePath is root #17841

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

Open
therepanic wants to merge 1 commit into spring-projects:main
base: main
Choose a base branch
Loading
from therepanic:gh-17812

Conversation

Copy link
Contributor

@therepanic therepanic commented Sep 3, 2025

Closes: gh-17812

Closes: spring-projectsgh-17812
Signed-off-by: Andrey Litvitski <andrey1010102008@gmail.com>
Comment on lines -244 to +246
Assert.isTrue(!basePath.endsWith("/"), "basePath must not end with a slash");
Assert.isTrue("/".equals(basePath) || !basePath.endsWith("/"), "basePath must not end with a slash");
Copy link
Contributor Author

@therepanic therepanic Sep 3, 2025

Choose a reason for hiding this comment

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

I believe in gh-17812, it was proposed to allow passing basePath as "/".

Copy link
Contributor Author

I think the build crashes because of 0a991a9

@jzheaux jzheaux self-assigned this Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

PathPatternRequestMatcherBuilder should not create a double-slash URI with a root base path

AltStyle によって変換されたページ (->オリジナル) /