I opened umbracoSettings file and I saw that disableAlternativeTemplates was set to false. However when I set it to true, sitemap can be opened only on root of domain, but when I try to open https://domain.com/something/sitemap it renders "something" but route stays with /sitemap. Is there way to avoid this so only /something would stay.
You are right here we have possibility of multiple url for same content. Also if you open in Preview Mode then you can access content via Node Id too.
So, best is to use canonical tag on the page. This will ensure that you have same url for SEO purpose even though same content is viewed from multiple url.
Sitemap shown on every route
Hi guys,
so I have this issue with Sitemap which by conventions should be shown only on https://domain.com/sitemap, which I'm trying to achieve, but however it can be accessed from every URI like https://domain.com/route1/route2/sitemap
Has anyone ever came across this issue, since I cant find anything about it?
Hi Faris,
You must have a template name sitemap.
By default, alternate template is true causing templates to appear after every actual url. You can disable this feature.
Below is the link on how this can be managed in config/umbracosettings.config. https://our.umbraco.com/documentation/reference/config/umbracosettings/
disableAlternativeTemplates="false" will fix the issue.
I'm having this weird behaviour now.
I opened umbracoSettings file and I saw that disableAlternativeTemplates was set to false. However when I set it to true, sitemap can be opened only on root of domain, but when I try to open https://domain.com/something/sitemap it renders "something" but route stays with /sitemap. Is there way to avoid this so only /something would stay.
Hi Faris,
You are right here we have possibility of multiple url for same content. Also if you open in Preview Mode then you can access content via Node Id too.
So, best is to use canonical tag on the page. This will ensure that you have same url for SEO purpose even though same content is viewed from multiple url.
Regards,
Shaishav
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.