NCEAS / metacatui

MetacatUI: A client-side web interface for DataONE data repositories
https://nceas.github.io/metacatui
Apache License 2.0
42 stars 24 forks source link

Change appConfigPath in index.html to the relative path config/config.js #2454

Open robyngit opened 2 weeks ago

robyngit commented 2 weeks ago

To accommodate the planned structure in Kubernetes deployments, we need to change the appConfigPath in index.html from an absolute path to a relative one.

The current path, var appConfigPath = "/config/config.js", is a problem for metacatui deployments that are in a sub-directory of a domain, like https://arcticdata.io/catalog. Currently, this deployment updates the config path in index to prepend /catalog/ to the start of the path, but this would not be needed if we use the relative path instead.

We should ensure that this change will be compatible with all existing (non Kubernetes) installations.

See also #2453