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: html urls should not be absolute #178

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

DavidTanner
Copy link
Contributor

Checklist

When the HTML uses an absolute URL, /documentation/index.css, then the browser requests the data from the /. This is an issue if swagger is set up as a nested route. I added a test for this where swagger is registered as a child of another prefix route.

Fixed #176

Related to #164, #162

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina merged commit 6383dcf into fastify:master Oct 15, 2024
16 checks passed
@DavidTanner DavidTanner deleted the fix-absolute-url-176 branch October 15, 2024 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't specify host to work correctly with nginx generated subroutes
2 participants