Not sure if this is a bug in umbraco 7 but browsing to site/standard loads the model for home and displays it with the standard template, the same goes for all data types with templates such as site/companylisting even though there is no such page in the pagetree.
Is this a bug? Can someone else reproduce it?
We are running 7.2.1
In summary to test it. Browse to your site with /[DataType alias] and instead of a 404 you get a page that may be broken or works but with the wrong content depending on the code in the template the datatype points to.
Alias for document type is browsable by URL?
Not sure if this is a bug in umbraco 7 but browsing to site/standard loads the model for home and displays it with the standard template, the same goes for all data types with templates such as site/companylisting even though there is no such page in the pagetree.
Is this a bug? Can someone else reproduce it?
We are running 7.2.1
In summary to test it. Browse to your site with /[DataType alias] and instead of a 404 you get a page that may be broken or works but with the wrong content depending on the code in the template the datatype points to.
Hi Tommy,
What do you mean with datatypes.
In umbraco terms datatypes are input types for your properties of the documenttypes.
Datatypes are not pages and can also not be viewed (just tested this to be sure).
Dave
Hi Tommy,
We are sure that it's not true, we just tested at Umbraco 7.2.1 and you can't get accessed to the /[DataType alias], you get 404 error definatelly.
Can you show your tree ? Maybe something with Umbraco structure.
THanks
I dont have access to the code right now but it was Document Type i meant and not datatype. I can probably give more information next week
Can you look at the Umbraco admin ?
I think we can see a lot in the tree.
Thanks
Did you resolve this Tommy?
Having the same issue on a 7.1.4 site, can't debug it. Doesn't happen on any of the other sites we have made.
Site structure is:
So for example /services/ works, but /page/ is also accessible when it shouldn't be.
/page/ loads the content of Home (CurrentPage.Id is same as Home) but with the page doctype template.
Hi,
This is probably because the page template is allowed on the homepage.
So you can call the homepage with that template by like this : http://yoursite.com/?altTemplate=page or http://yoursite.com/page
Can you check if the page templates is allowed on the homepage template ?
Dave
Hi Dave,
Thanks - I thought this aswell but Home only has the Home template allowed.
Very weird!
Just did a test.
I can actually reproduce this.
This behavior can be disabled in the web.config
See one of the comments listed in this issue : http://issues.umbraco.org/issue/U4-274
Keep in mind this disables the alt template functionality entirely.
Dave
Thanks alot Dave!
Ended up removing this as advised:
Glad you solved it. Something I need to remember as well.
Also don't forget to mark this post as solved, so others can find the solution as well.
Dont think I can as I wasnt the OP :(
No problem. Maybe the OP will read it and mark it as resolved
is working on a reply...