I'm having problems using umbracoUrlAlias on a v7 site. I've used it in virtually all sites on earlier versions with no problems so I'm at a bit of a loss.
I have a base document type containing the umbracoUrlAlias property, and a child document type that my page is.
Link to document on properties page is /user-portal/questionnaire/
I have no URL rewrite rules set up. I've saved and published everything.
Don't really know where to look! I can set up URL rewrite rules instead but it's a bit annoying having to maintain them as well as the page URLs.
EDIT: Just tried removing it from the base document type and adding it to the specific document type of the page; still no joy.
EDIT 2: Just to be clear on why URL rewriting is suboptimal, if the content node page name is changed, all the rewrite rules will stop working; adding an umbracoUrlAlias allows me to create an unchanging page link, which is essential for allowing custom functionality that may not be aware of Umbraco to link around the site.
If there is a better way of creating unchanging canonical URLs I'm all ears!
I think I found out why you can´t get the umbracoUrlAlias to work on your site. I tried copy your path to one of the page of the starter kit site, and then I get the 404 page as you. But if I change the the path to the page, from my-account/Questionnaire to my-account/questionnaire it just work fine.
I think that the umbracoUrlAlias are not happy with uppercase letters in the path that you want the url to response on. All URL´s in Umbraco are lowercase.
Worked ok for me in 7.4.3 - had to type the field name umbracoUrlAlias correctly and make sure that the entered string is lowercase, too.
So if I add myPageName it won´t work, but mypagename does.
I know it's been a while, but did any of you come across problems getting this to work?
I'm running Umbraco 7.3.0 and have tried lower case, umbracoUrlName and umbracoUrlAlias and none of them seem to work.
Do I have to republish the site or "touch" the web config or any some such?
Also to add, for others who may come across this post, during my searching I have found on this issue for 7.4.3 it describes the difference between "umbracoUrlName" and "umbracoUrlAlias".
It also could possibly mean on my 7.3.0 that it wasn't working.
It says:
he umbracoUrlAlias allows you to assign the complete url the content should be reached at. If you set it to /this/is/my/url you will be able to reach the page at that url relative to your site root:
http://site.com/this/is/my/url
The umbracoUrlName allows you to assign a different "part" to be used
when the url is being built. This means that Umbraco will use whatever
is in umbracoUrlName for building the url part for this node when
constructing urls:
if your page is alias has spaces like 'this is it too', this-is-it-too doesnt work but 'thisisittoo' works. why is it like this?
also, why can't i add it in properties page? i liked the old one where when you add this property it generates a link.
v7 umbracoUrlAlias not working?
I'm having problems using
umbracoUrlAlias
on a v7 site. I've used it in virtually all sites on earlier versions with no problems so I'm at a bit of a loss.I have a base document type containing the
umbracoUrlAlias
property, and a child document type that my page is.Link to document on properties page is
/user-portal/questionnaire/
Alias is:
my-account/Questionnaire
Browsing to
http://server/user-portal/Questionnaire
works,http://server/my-account/Questionnaire
does not.I have no URL rewrite rules set up. I've saved and published everything.
Don't really know where to look! I can set up URL rewrite rules instead but it's a bit annoying having to maintain them as well as the page URLs.
EDIT: Just tried removing it from the base document type and adding it to the specific document type of the page; still no joy.
EDIT 2: Just to be clear on why URL rewriting is suboptimal, if the content node page name is changed, all the rewrite rules will stop working; adding an
umbracoUrlAlias
allows me to create an unchanging page link, which is essential for allowing custom functionality that may not be aware of Umbraco to link around the site.If there is a better way of creating unchanging canonical URLs I'm all ears!
Hi Rob,
Which version of Umbraco 7 are you using. Then I will try to see if I can reproduce the issue too.
Looking forward to hear from you.
/Dennis
Hi Dennis, version reported is: Umbraco version 7.1.3 assembly: 1.0.5250.13487
Hi Rob,
I think I found out why you can´t get the umbracoUrlAlias to work on your site. I tried copy your path to one of the page of the starter kit site, and then I get the 404 page as you. But if I change the the path to the page, from my-account/Questionnaire to my-account/questionnaire it just work fine.
I think that the umbracoUrlAlias are not happy with uppercase letters in the path that you want the url to response on. All URL´s in Umbraco are lowercase.
So try to change from:
my-account/Questionnaire
To:
my-account/questionnaire
Hope this helps,
/Dennis
Oh my God, you are completely right! So simple I didn't even think of it!
Thanks for looking into it, I will change all my URLs now. They look better lowercase anyway, I just had my head stuck in MVC world :)
Rob
Oh for heaven's sake...
Had a total brain failure and clicked my reply as the answer rather than your post, sorry! If any mods want to change it, please do.
Hi Rob,
Glad that I could help you get the problem solve.
/Dennis
I was searching why the property was not working for me and i came across this post.
Solution for me was to write the property case sensitively in the property editor.
I had written umbracoURLAlias but the system requires it to be named: umbracoUrlAlias .
I hope this helps someone.
umbracoUrlAlias doesn't seem to work for me, but umbracoUrlName does.
Was this changed at some point?
I can see on an Umbraco 6 installation that umbracoUrlAlias, but on an umbraco 7 installation only umbracoUrlName works.
Worked ok for me in 7.4.3 - had to type the field name umbracoUrlAlias correctly and make sure that the entered string is lowercase, too. So if I add myPageName it won´t work, but mypagename does.
I know it's been a while, but did any of you come across problems getting this to work? I'm running Umbraco 7.3.0 and have tried lower case, umbracoUrlName and umbracoUrlAlias and none of them seem to work.
Do I have to republish the site or "touch" the web config or any some such?
Also to add, for others who may come across this post, during my searching I have found on this issue for 7.4.3 it describes the difference between "umbracoUrlName" and "umbracoUrlAlias".
It also could possibly mean on my 7.3.0 that it wasn't working.
It says:
if your page is alias has spaces like 'this is it too', this-is-it-too doesnt work but 'thisisittoo' works. why is it like this? also, why can't i add it in properties page? i liked the old one where when you add this property it generates a link.
I have to keep guessing what the url is
is working on a reply...