Copied to clipboard

Flag this post as spam?

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


  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Dec 10, 2013 @ 12:01
    Ali Sheikh Taheri
    0

    umbracoInternalRedirectId doesnt work

    Hi

    I am using umbraco 6.1.6 and have the below structure:

    website
    
         home page
    
         text page
    

    on website node I've umbracoInternalRedirectId field and home page is selected but when I go to my http://localhost:1234/ I get 404 page

    any idea why I am getting 404 rather than home page?

    Cheers

    Ali

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Dec 10, 2013 @ 12:03
    Jeroen Breuer
    0

    Hello,

    Does the homepage have a template? If it doesn't it will show a 404 page.

    Jeroen

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Dec 10, 2013 @ 12:04
    Ali Sheikh Taheri
    0

    yes it does.

    when I go to http://localhost:1234/home I can see the home page but not http://localhost:1234/ :(

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Dec 10, 2013 @ 12:06
    Ali Sheikh Taheri
    0

    one thing, I am using the same technique as Hybrid Framework. all the pages are hijacked so can it because of that?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Dec 10, 2013 @ 12:06
    Jeroen Breuer
    0

    What if you remove the internal redirect and give the website node a tempalte. Can you visit that?

    Jeroen

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Dec 10, 2013 @ 12:10
    Ali Sheikh Taheri
    0

    nope I can't

    Server Error in '/' Application.
    
    The model item passed into the dictionary is of type 'Website.Extensions.Models.BasePageViewModel', but this dictionary requires a model item of type 'Website.Extensions.Models.TextPageViewModel'.
    

    probably I need to hijack the website node too!

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Dec 10, 2013 @ 12:12
    Ali Sheikh Taheri
    0

    just tried to change the view to have the BasePageViewModel and it works fine.

    do I need to have template for website?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Dec 10, 2013 @ 12:13
    Jeroen Breuer
    0

    Yes that won't work because you don't have route hijacking for the website node, but you can visit the page and you don't get a 404 so that works. Strange that the internal redirect gives a 404.

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft