Friendly URL

Hi

When using umbracoUrlAlias to create friendly URLs I’ve found that it doesn’t work when you have language variants.

It works for the primary default language but not for the others. I just get a page not found.

Am I missing a setting/config?

v13 & v16

David

Hi David :waving_hand:

Just to be sure:

  1. You’ve allowed variation by culture for the doctype
  2. You’ve allowed variation by culture for the umbracoUrlAlias property
  3. You’ve assigned multiple hostnames and assigned different cultures to them
  4. You’ve entered different values for the umbracoUrlAlias property on the page

Are you getting redirected to the 404 page, or do you get the 404 page content on the requested URL? (e.g. if you’ve entered my-custom/urlalias for a page, does that stay as the URL?)

/Chriztian

yes, variation by culture is set on the doctype and property hostnames are set up and the umbracoAlias is different.

full English url

friendly English url

full Welsh url

friendly Welsh url - doesn’t work
https://www.ceredigion.gov.uk/testcym

Unfortunately this issue goes way back to Umbraco 8 and has never worked or been fixed. You can read more about it here:

1 Like

Ah, low priority it would seem. Still not working in v16

Ahhh this old issue…

Yea I made two PRs for this back in v8:

One that fixed the underlying Content Finder :
https://github.com/umbraco/Umbraco-CMS/pull/9939
(rejected due to people potentially relying on the broken behaviour)

And then a second one that fixed the URLs displayed in the Info tab:
https://github.com/umbraco/Umbraco-CMS/pull/11354
(Closed after v8 entered support-only phase)

I would highly recommend NOT using the umbracoUrlAlias feature, and I would instead heed Sebastian’s advice and make use of a dedicated redirect package like Skybrud Redirects to create these friendly URLs.

1 Like