kbss-cvut / record-manager-ui

GNU Lesser General Public License v3.0
0 stars 2 forks source link

Links to a specific screen of the application does not work #125

Open blcham opened 6 months ago

blcham commented 6 months ago

There is no way to go to a specific screen of the application using URL, as all specific addresses always redirect to the main dashboard.

Let's show it on the screen /institutions: image

image

As in fta-fmea-ui, we use browser-router in the front-end, but in the fta-fmea-ui it works well. Note that this issue is quite old, so it was not caused by migration to Vite.

A/C:

blcham commented 6 months ago

@shellyear I have added "A/C" to the description of the issue

shellyear commented 6 months ago

@blcham It works with dockerization, in order to test that I made a docker build, and used that image in docker-compose.yml for record-manager and tested on localhost:1235. It works on vite dev and build. What do you mean by vite development deployment ?

blcham commented 6 months ago

By vite development deployment I mean working when running from http://localhost:5174.

blcham commented 6 months ago

@shellyear I merged the initial fix, but there are still issues:

image

Before your fix, when entering such URL, it navigated to the dashboard page, which is a better solution than showing a white screen. If we do not solve this issue, I would rather revert this fix.

shellyear commented 5 months ago

@blcham link to institution "/institution/:id" works on dev, but fails on build

shellyear commented 5 months ago

@blcham It makes request, to the institutions/config somehow and can't find the institutionsController in the build after refresh (err 404)

Screenshot 2024-04-12 at 23 05 17 Screenshot 2024-04-12 at 23 09 45
blcham commented 5 months ago

That means the path to config.js is wrongly set.

shellyear commented 5 months ago

@blcham It works with dockerization, when I set a "base" as "/record-manager/", but for dev and build it should be not explicitly set (defautl base is "/")

blcham commented 5 months ago

How deployment works:

The problem:

Alternative possible solutions to fix the dockerization:

blcham commented 4 months ago

Currently this is not that important now, so putting back to state TODO.

ledsoft commented 4 months ago

This answer helped me a lot, maybe it will help you as well: https://stackoverflow.com/a/67195723/4929038