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

Subfolder installation of zotero/web-library, <Icon>, absolute path hard coded #1

Open
glorieux-f opened this issue Jan 26, 2024 · 0 comments

Comments

@glorieux-f
Copy link

glorieux-f commented Jan 26, 2024

I have a zotero/web-library installed under {myuniv.edu}/author/bibliography/, constraint non-negotiable. It is said that a react application can be moved to subfolders with this kind of writing <BrowserRouter basename="/author/bibliography/">, but, svg of icons is displayed with an absolute path, starting by /static/icons/. How to get the basename value in this context ? Some on the web advise to use useHref('/'), but it is not available in this context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant