Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tommy Söderström 9 posts 45 karma points
    Mar 27, 2015 @ 17:42
    Tommy Söderström
    0

    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.

  • Dave Woestenborghs 3504 posts 12134 karma points MVP 9x admin c-trib
    Mar 28, 2015 @ 09:31
    Dave Woestenborghs
    0

    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

  • Alex Skrypnyk 6147 posts 24056 karma points MVP 8x admin c-trib
    Mar 28, 2015 @ 14:57
    Alex Skrypnyk
    0

    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

  • Tommy Söderström 9 posts 45 karma points
    Mar 28, 2015 @ 15:39
    Tommy Söderström
    0

    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

  • Alex Skrypnyk 6147 posts 24056 karma points MVP 8x admin c-trib
    Mar 28, 2015 @ 16:28
    Alex Skrypnyk
    0

    Can you look at the Umbraco admin ? 

    I think we can see a lot in the tree.

     

    Thanks

  • Matt 91 posts 237 karma points
    Aug 17, 2015 @ 10:51
    Matt
    0

    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:

    • Home
      • Services (doctype page)
      • About (doctype about)
      • Contact (doctypecontact)

    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.

  • Dave Woestenborghs 3504 posts 12134 karma points MVP 9x admin c-trib
    Aug 18, 2015 @ 05:59
    Dave Woestenborghs
    0

    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

  • Matt 91 posts 237 karma points
    Aug 18, 2015 @ 07:14
    Matt
    0

    Hi Dave,

    Thanks - I thought this aswell but Home only has the Home template allowed.

    Very weird!

  • Dave Woestenborghs 3504 posts 12134 karma points MVP 9x admin c-trib
    Aug 18, 2015 @ 07:40
    Dave Woestenborghs
    1

    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

  • Matt 91 posts 237 karma points
    Aug 18, 2015 @ 08:37
    Matt
    100

    Thanks alot Dave!

    Ended up removing this as advised:

    <notFound assembly="umbraco" type="SearchForTemplate"/> 
    
  • Dave Woestenborghs 3504 posts 12134 karma points MVP 9x admin c-trib
    Aug 18, 2015 @ 08:39
    Dave Woestenborghs
    1

    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.

  • Matt 91 posts 237 karma points
    Aug 18, 2015 @ 08:43
    Matt
    0

    Dont think I can as I wasnt the OP :(

  • Dave Woestenborghs 3504 posts 12134 karma points MVP 9x admin c-trib
    Aug 18, 2015 @ 08:46
    Dave Woestenborghs
    0

    No problem. Maybe the OP will read it and mark it as resolved

Please Sign in or register to post replies

Write your reply to:

Draft