-
Type: Task
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: Web UI
-
Epic Link:
-
Tags:
-
Sprint:nxGang Sprint 9.1.7, nxGang Sprint 9.1.8, UI - 2020-05 1, UI - 2020-05 2
Today Web UI is configured to use the default repository ootb. This configuration is done when defining the shared <nuxeo-connection> in our index page.
This means that by changing the index page we can make Web UI work with any other repository.
Still in order to Web UI working with multiple repositories, we need a way to make this configuration dynamic and we need it to be reflected in the URL.
With the work done on NXP-25040 we have Tomcat's rewrite valve enabled by default so it should be possible to have the repository name in the URL injected into the index page and used in the connection.
For instance, a rewrite rule like RewriteRule ^/repo/(.)/ui/(.) /ui/$2 [E=NXREPO:$1] would make the repository available as a NXREPO request attribute.
The <nuxeo-app> baseUrl also needs to be properly set to ensure the `/repo/<repo>` prefix is kept in links.
- depends on
-
ELEMENTS-251 Improve state sharing among nuxeo-connection instances
- Open
-
ELEMENTS-252 Add navigateTo function to routing behavior
- Resolved
-
ELEMENTS-253 Add repository to path generated by nuxeo-share-button
- Resolved
- is related to
-
NXP-21684 Allow setting current repository in new WEB UI
- Resolved
-
NXP-29141 Backport multi-repository support
- Resolved
- Is referenced in