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

<base> tag leads to wrong internal links #157

Open
DominikPeters opened this issue Mar 12, 2024 · 0 comments
Open

<base> tag leads to wrong internal links #157

DominikPeters opened this issue Mar 12, 2024 · 0 comments

Comments

@DominikPeters
Copy link

DominikPeters commented Mar 12, 2024

The conversion inserts a <base> tag in the head of the HTML document:

base_html = f'<base href="/html/{id}/">'

This leads all internal links in the document to get this base prepended. Looking at https://arxiv.org/html/2205.15760v3 as an example, this means that for instance (Boutilier et al., <a class="ltx_ref" href="#bib.bib17" title="">2015</a>) actually points to https://arxiv.org/html/2205.15760v3/#bib.bib17 which leads to 404. It should point to https://arxiv.org/html/2205.15760v3#bib.bib51 without the / before the anchor #bib.bib17. So all internal links (e.g. to figures, theorems, or bib items) are broken.

So I believe the above line should be changed to

 base_html = f'<base href="/html/{id}">' 
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

No branches or pull requests

1 participant