subsite catalogue home is not aligned with subsite
Closed this issue · 4 comments
We have a scenario where CATALOG_HOME_REDIRECTS_TO
is not set.
This means that the subsite can have bot home page and catalogue page.
The catalogue page works as expected and the subsite is mantained.
From the home page, if i click on "Filter" from the subsite page, the page is redirected to the root website page
Example:
This is happening because the client use an hard-coded catalogue URL.
I suggest to add in the _geonode_config.html
the possibility to define the catalogue URL (like we do the with the siteUrl) or the client should use that as a value for the catalogue.
This is happening because the client use an hard-coded catalogue URL.
As of now, this path is configurable but only as plugin configuration using the cfg.filterPagePath
.
Having a catalogueURL
to _geonode_config
, should allow us to not worry about the default catalogue url. We can still override one using plugin config if the need arise.
Change required on client side
- Update
__GEONODE_CONFIG__
's geoNodeSettings withCATALOG_PAGE_PATH
- Update templates where catalogue path is pre-configured
- Update
ResourceGrid
plugin configurations to supportCATALOG_PAGE_PATH
and menu items href to work in conjunction with plugin overrides - Update redirection urls wherever applicable (i.e epics and in components)
config merged in subsite, now it works as expected