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(core/xref) : preserve the filename in URL #4788

Merged
merged 2 commits into from
Sep 7, 2024

Conversation

tidoust
Copy link
Contributor

@tidoust tidoust commented Sep 7, 2024

Fixes #4787.
The URL of the spec may end with a filename but the code assumed that it would always be a path, and thus that resolving ./ against the URL of the spec would be a no-op. The code now makes sure resolve the URL of the spec against an empty string when the xref search does not return a more specific path.

See speced#4787 for context. The URL of the spec may end with a filename but the code
assumed that it would always be a path, and thus that resolving `./` against
the URL of the spec would be a no-op. The code now makes sure resolve the URL
of the spec against an empty string when the xref search does not return a more
specific path.
@sidvishnoi sidvishnoi changed the title Preserve the filename in the URL of an external term fix(core/xref) : preserve the filename in URL Sep 7, 2024
Copy link
Member

@sidvishnoi sidvishnoi left a comment

Choose a reason for hiding this comment

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

Thanks @tidoust!

@sidvishnoi sidvishnoi merged commit 53e8e3d into speced:main Sep 7, 2024
7 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.

Incorrect generated xref link
2 participants