ec-jrc / re3gistry

Re3gistry is a reusable open source solution for managing and sharing ‘reference codes’, ensuring semantic interoperability across organisations.
European Union Public License 1.2
27 stars 21 forks source link

configuration parameter @web.application_root_url@ neglected in content view #438

Open jane-heller-bkg opened 1 week ago

jane-heller-bkg commented 1 week ago

When viewing register items through the content view, the link presented in the column Status for each item is constructed falsely. It should probably follow @web.application_root_url@. Currently it is built using the local listen interface of the tomcat instance (e.g. http://127.0.0.1:8080//status/valid) and contains a duplicate slash.

jane-heller-bkg commented 1 week ago

This is also related to #367 URL generation should probably be overhauled in generally, because it seems faulty at different places.

iratigarzon commented 1 week ago

Dear @jane-heller-bkg,

The URL for the status column is based on the baseuri attribute of the reg_statusgroup table. If you encounter a duplicate slash in the URL, it may be because the baseuri attribute in reg_statusgroup is empty. Here is an example from our local instance to help you make a modification in the mentioned table.

In our case, we have the following information in the reg_statusgroup table:

image

When we click on the status column, it redirects us to http://host.docker.internal/registry/status/valid, showing the following information:

image

I hope this information helps you resolve the issue.

Best regards,

Irati.