I am using web.sitemap
to generate breadcrumbs in my website, but I have a page that can be navigated using multiple paths.
我正在使用web.sitemap在我的网站中生成面包屑,但我有一个可以使用多个路径导航的页面。
Is there a way I can support multiple paths using web.sitemap
? If not, what is the alternative?
有没有办法可以使用web.sitemap支持多个路径?如果没有,有什么替代方案?
1 个解决方案
#1
0
a standard and valid web.sitemap can't have duplicate urls ,so
一个标准且有效的web.sitemap不能有重复的URL,所以
I can think of 3 solutions :
我能想到3个解决方案:
1- take one path as standard path and define that in your web.sitemap
1-将一条路径作为标准路径,并在web.sitemap中定义该路径
2- another choice is to set SiteMapPath control's links urls programmatically based on how the user has came to the page .
2-另一种选择是根据用户访问页面的方式以编程方式设置SiteMapPath控件的链接URL。
3- and another solution could be using Url-rewriting . for each path that ends with this page create a separate url . this way you might could avoid duplicate urls
3-和另一种解决方案可能是使用Url重写。对于以此页面结尾的每个路径,创建一个单独的URL。这样你就可以避免重复的网址
#1
0
a standard and valid web.sitemap can't have duplicate urls ,so
一个标准且有效的web.sitemap不能有重复的URL,所以
I can think of 3 solutions :
我能想到3个解决方案:
1- take one path as standard path and define that in your web.sitemap
1-将一条路径作为标准路径,并在web.sitemap中定义该路径
2- another choice is to set SiteMapPath control's links urls programmatically based on how the user has came to the page .
2-另一种选择是根据用户访问页面的方式以编程方式设置SiteMapPath控件的链接URL。
3- and another solution could be using Url-rewriting . for each path that ends with this page create a separate url . this way you might could avoid duplicate urls
3-和另一种解决方案可能是使用Url重写。对于以此页面结尾的每个路径,创建一个单独的URL。这样你就可以避免重复的网址