Hello @Orly_MUGWANEZA
I suggest for DHIS2 apps you use HashRouter or MemoryRouter
for routing instead of BrowserRouter
. See their usages here.
The BrowserRouter
has challenges for apps that are not hosted at the base URL. You will have to set the basename
prop which is very dynamic for DHIS2 apps (they vary with DHIS2 versions).