Assign multiple slugs to one file / page

That’s not what you want. This would be a change request so .GetPage returns multiple pages…:wink: in some/all cases.

so you need something,. where you think its .GetPage. But in fact you want to realize some target pages, link behavior, information/content shown somewhere. “USE CASE”

I still don’t know how exactly how that would look like in the target site, where you use the old, new name in your links and/or content files … Sometimes it’s good to step out of the box and thing about “what you want” without “coding in the head”

here’s a repo with three Gulfs America, Mexica and Something.
the first two are normal tags with content pages. The “Something” is an alias to America.

I adjusted the terms layout to print the aliases have a look at /gulfs/gulf-of-america after building.

git clone --single-branch -b topic-56175-aliasedTags https://github.com/irkode/hugo-forum.git gulfs
cd gulfs
hugo

and browse the site.

At best this is something you “need”, and we are done - if not elaborate on what you need/want more/differently" focusing on the relations and target pages, not the code.

2 Likes