gbif / hosted-portals

Support material for establishing the GBIF Hosted Portals
Apache License 2.0
10 stars 6 forks source link

how to configure url of tags? #291

Closed ymgan closed 4 months ago

ymgan commented 4 months ago

Hey,

May I know how can I configure the url of tags when they have different translations please?

Example

English version

https://www.canadensys.net/

Screenshot 2024-05-31 at 16 06 48

Tag url for Conference is https://www.canadensys.net/news/?category=Conference

French version

https://www.canadensys.net/fr

Screenshot 2024-05-31 at 16 08 22

The tag url for Conférence become https://www.canadensys.net/news/?category=Conf%C3%A9rence which returns nothing because it is missing the fr/ prefix - https://www.canadensys.net/fr/news/?category=Conf%C3%A9rence

Thanks a lot for your help!

MortenHofft commented 4 months ago

You need to define where you news archive is located per language. Else it will use a default https://hp-theme.gbif-staging.org/translations#where-is-the-post-archive

I've added it for your site here https://github.com/gbif/hp-canadensys/commit/6f24fbcc28ddb91cced3e933e659155c8490716b

ymgan commented 4 months ago

Thank you so much Morten!