+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / urlMappings causing site menu to disappear

urlMappings causing site menu to disappear

4 posts, 0 answered
  1. Erick
    Erick avatar
    1 posts
    Registered:
    19 Jun 2012
    14 Sep 2010
    Link to this post
    Hi, I'm running into an issue when adding urlMappings to my web.config file.

    I have a homepage called "home". When I type in "domain.com" I get forwarded to "domain.com/home". I want to solve the solution using urlMappings so I added the following to my web.config under the <cms> section.

    <urlMappings>
      <add key="domain.com" value="home" shared="true" />
    </urlMappings>

    When I apply that, it works as it should and when I visit "domain.com" I am not forwarded to /home but instead that is the homepage.

    However; this has caused another weird error with the site menus. They have completely vanished and instead I get just this empty shell (I'm using the drop down menu control included with Sitefinity).

    <div class="RadMenu RadMenu_SitefinityBlue" id="ctl00_TopMenu_ctl00_RadMenu1">
        <!-- 2010.1.309.35 --><input type="hidden" name="ctl00_TopMenu_ctl00_RadMenu1_ClientState" id="ctl00_TopMenu_ctl00_RadMenu1_ClientState" autocomplete="off">
    </div>

    The same is true for any other dynamic menu which is generated based off of my page layout. It's almost as if by adding the url mapping, the entire sitemap has been erased.

    I've searched high and low with now answer. Does anyone have a suggestion? Removing my urlMapping code from web.config returns the site to normal although my homepage setup is back to the way it was (which I don't want).

    Thanks!
    Erick
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    28 Sep 2010
    Link to this post
    Hello Erick,

    Just to let you know that we sent a reply to your support request about this issue. With Doman-Page-Mapping the navigation controls are bound below your home page( the value of the key element)
    To remove the home page from the url when you type your domain you do not have to use Doman-Page-Mapping. You can just set redirectToHome property under <cms> node of the web.config

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Jason
    Jason avatar
    21 posts
    Registered:
    12 Nov 2009
    17 Dec 2010
    Link to this post
    So how was this issue of the missing navigation fixed?  I'm running into the same issue but I don't quite follow the comment that "navigation controls are bound below your home page( the value of the key element)". I understand what it means but how does one set up the web.config to address this?  I can't put in the page/node url above the desired home page as it's in a different site.

    Thanks,

    -Jason

    ---never mind...got it now.  Need page/node structure to have domain home pages as first node below root.
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    27 Dec 2010
    Link to this post
    Hello Erick,

    We are glad that you've managed to fix it yourself.

    Happy holidays!

    Kind regards,
    Georgi
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
4 posts, 0 answered