首页 > 解决方案 > Umbraco routing not working outside Home node

问题描述

To reproduce the issue create the following hierarchy:

Why does umbraco skip /foo/ when creating a page outside of Home? Is there a way to make nodes outside of Home stack the path as the nodes under Home?

Umbraco v7

标签: umbracoumbraco7

解决方案


Home 是您的根节点,因此 / 将显示您的主页,而 /foo/ 将显示 home>foo 页面。

显示根 foo 节点下的节点的唯一方法是使用“文化和主机名”在根 foo 节点上提供主机名

显然,一旦你这样做了,你还必须在 iis 中将该主机名设置为同一网站上的绑定。

如果您为 foo 节点添加一个主机名,那么为主节点设置主机名也可能是一个好习惯


推荐阅读