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

[backbport v4.x] fix: html urls should not be absolute #179

Merged
merged 1 commit into from
Oct 17, 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

@dancastillo
Copy link
Member

@DavidTanner looks like CI is failing for ubuntu

@DavidTanner
Copy link
Contributor Author

@dancastillo when was the last time the build passed for this branch? I saw other PRs that were merged with the same failures. I can check tomorrow

@dancastillo
Copy link
Member

Good callout, looks like this has been failing for a while now https://github.com/fastify/fastify-swagger-ui/commits/v4.x/

Copy link
Member

@dancastillo dancastillo left a comment

Choose a reason for hiding this comment

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

LGTM

@gurgunday
Copy link
Member

@dancastillo can you make a PR removing the package manager ci?

@gurgunday
Copy link
Member

Oh never mind it's a backport

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 e32e32c into fastify:v4.x Oct 17, 2024
18 of 21 checks passed
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.

4 participants