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

🥤 Use correct remoteBaseUrl on nested cross reference popups #387

Merged
merged 1 commit into from
May 14, 2024

Conversation

fwkoch
Copy link
Contributor

@fwkoch fwkoch commented May 14, 2024

To reproduce this bug you need a MyST site with a cross reference to a second site that contains a cross reference to a third site. The theme will try to access the third site's content at the second site's base url.

You can recreate this with: [](xref:mystmd#tbl:syntax-xref)

This PR simply changes the order of base url resolution to prioritize the node's remoteBaseUrl, if defined, over the parent's remoteBaseUrl.

@fwkoch fwkoch merged commit 5159f3b into main May 14, 2024
2 checks passed
@fwkoch fwkoch deleted the feat/nested-xref-baseurl branch May 14, 2024 22:55
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.

2 participants