umbraco - Umbraco routing not working outside Home node
问题描述
To reproduce the issue create the following hierarchy:
- Content
- Home
- Foo
- Bar - The published URL will be
<domain>/foo/bar
- Bar - The published URL will be
- Foo
- Foo
- Bar - The published URLwill be
<domain>/bar
- Bar - The published URLwill be
- Home
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
解决方案
Home 是您的根节点,因此 / 将显示您的主页,而 /foo/ 将显示 home>foo 页面。
显示根 foo 节点下的节点的唯一方法是使用“文化和主机名”在根 foo 节点上提供主机名
显然,一旦你这样做了,你还必须在 iis 中将该主机名设置为同一网站上的绑定。
如果您为 foo 节点添加一个主机名,那么为主节点设置主机名也可能是一个好习惯
推荐阅读
- ubuntu - Ns2 wsn 停止发送接收并在节点中保持意义?
- cryptography - wolftpm 一直在接收 TPM_RC_BAD_TAG
- javascript - 如何在 JavaScript node.js 中编写二进制 mlm 注册系统
- regex - 缩短 Python 正则表达式模式
- reactjs - 承诺中的 setState 未更新
- python - sqlalchemy 禁用缓存(在每次调用中调用数据库)
- sql - Oracle SQL Pivot 多列
- javascript - 如何将变量传递给 Promise.All 函数?
- vb.net - 具有两个参数的控制器中的操作 - 如何设置路由和控制器?
- javascript - Vue.js - httpVueLoader 不加载模块?