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

Unable to link to static content #714

Open
ceruleandeep opened this issue Oct 29, 2024 · 0 comments
Open

Unable to link to static content #714

ceruleandeep opened this issue Oct 29, 2024 · 0 comments

Comments

@ceruleandeep
Copy link

I have the problem mentioned in #282 (reply in thread)

I contribute to some documentation https://github.com/SillyTavern/SillyTavern-Docs hosted at the root of a GitHub Pages with custom URL

I need to test my fork of this documentation hosted at /SillyTavern-Docs on my GitHub Pages

If I include an absolute link to static content in head.html it does not work for any pages on my fork.
<link href="/static/css/fontawesome.min.css" rel="stylesheet"/>

If I include a relative link it does not work for any route/page that is not /
<link href="static/css/fontawesome.min.css" rel="stylesheet"/>

If I include an absolute link with the repo name it will work on my fork but will not work on the main repo
<link href="/SillyTavern-Docs/static/css/fontawesome.min.css" rel="stylesheet"/>

Thank you

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