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

Install web-library in a subfolder, relative routes ? #534

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

Install web-library in a subfolder, relative routes ? #534

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

Comments

@glorieux-f
Copy link

The Zotero web-library has been elected by our team as the best webapp to publish a bibliography (the killer feature is the export in any desired style). Under an university website, it’s usually not possible to have a root server. So the Zotero webapp has to be installed in a subfolder. Here is the official bibliography of the psychologist Jean Piaget (available also as a public zotero group).

https://www.unige.ch/piaget/biblio/

Most of what we need works very well, but routing is a big problem. The Zotero react app use absolute path only, like https://www.unige.ch/groups/5024983/piaget_enop/items/V2F26IMG/library, going away from its assigned folder. Of course our sysadmins will not support such urls, so they are not stable.

React-router is supposed to support the attribute BrowserRouter/@basename to ensure a prefix to all urls in the app. Of course if this feature is quite new, developers have not use it in the past (not necessary under zotero.org), but, is it in your projects to make the “web-library” more portable? If yes, what kind of approach did you consider, especially to pass such parameter?

Tanks for any clue to follow zotero directions, even a bit in advance, so that syncing our fork will be less painfull.

@markdoerr

This comment was marked as off-topic.

@markdoerr

This comment was marked as off-topic.

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

2 participants