Umbraco incorrect 'Link to document' when setting hostname

和自甴很熟 提交于 2019-12-13 17:36:24

问题


Basically defined a domain (Manage hostnames option) for Node1 and have Umbraco tree structure

Content
     + en
       + Node1
        + Subnode1
        + Subnode2
       + Node2
     + es
       + Node3
        …

When check ‘Subnode1’ properties have that ‘Link to document’ and ‘Alternative Links’ path are inconsistent:

Link to document: /Node1/subnode1.aspx
Alternative Links: http://www.domain.com/subnode1.aspx

I would like to get rid of the folder ‘/Node1/’ in ‘Link to document’, that is returned in NiceUrl and is messing my Url links on pages.

I would like to only have:

Link to document: /subnode1.aspx
Alternative Links: http://www.domain.com/subnode1.aspx

Tried to follow steps in http://our.umbraco.org/forum/using/ui-questions/3505-Change-site-root-node,-NiceUrl-doesnt-change but no luck the only thing I get is:

Page not found
    umbraco tried this to match it using this xpath query'/domainprefixes-are-used-so-i-do-not-work')
    This page can be replaced with a custom 404 page

Hope I get some helpful reply :) Thanks


回答1:


Try implementing the solution here: http://our.umbraco.org/forum/using/ui-questions/5481-niceurl--3rd-level

Also, did you try to republish the entire site?



来源:https://stackoverflow.com/questions/5043348/umbraco-incorrect-link-to-document-when-setting-hostname

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!