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

Forums / Developing with Sitefinity / SiteNavTabStrip Configuration Question

SiteNavTabStrip Configuration Question

2 posts, 0 answered
  1. Zack
    Zack avatar
    41 posts
    Registered:
    18 Apr 2007
    01 Apr 2008
    Link to this post
    I am struggling with a SiteNavTabStrip configuration issue and I'm hoping that someone can help me get this figured out ...

    Scenario:

    I have a page group titled "Plans", which has two "sub-pages", Page1 and Page2.  For SEO reasons, I want to direct all my traffic to www.mysite.com/plans/.  Page1 is my default page and it is the resource that should be displayed anytime either of the following Urls are requested:
    www.mysite.com/plans/
    www.mysite.com/plans/Page1.aspx

    So to accomplish this we've implemented the Extensionless Url functionality as outlined in the Sitefinity docs (sf404.aspx as the 404 page in IIS).  That part seems to work fine.

    Our trouble is that when we added a SiteNavTabStrip to our master page template in Sitefinity, the Url associated with the "Plans" tab is www..mysite.com/plans.aspx instead of the desired www.mysite.com/plans/.  This results in users (and Search Engine bots) receiving 302 redirect instructions to Page1, which is bad for one's page rankings.

    Take a look at the Sitefinity.com website for example.  Assuming that they're using a SiteNavTabStrip for the main header navigation).  The "Purchase" tab's Url is http://www.sitefinity.com/purchase/buy-now.aspx.  While this is not the exact behavior that I'm looking for, at least the tab's Url points to the "default" page within the page group (verify by trying to access www.sitefinity.com/purchase) as opposed to the page group's "purchase.aspx" Url.

    Question 1 is "Can I somehow configure the SiteNavTabStrip to generate urls in www.mysite.com/mypagegroup format"?

    Question 2 is "If I can't do that, how do I emulate the functionality that Sitefinity seems to be using on their own site (where the Tab's Url is that of the default page within the Page Group"

    Thanks!

    Zack

  2. Nikifor
    Nikifor avatar
    232 posts
    Registered:
    18 May 2013
    08 Apr 2008
    Link to this post
    Hello Zack,

    We investigated the best approach for achieving the requested functionality you provided, and now send you the modified SiteTabStrip.ascx.cs file (see the attachment). Please, replace it with the same file from your project stored in ~/YourWebSite/Sitefinity/UserControls/Navigation/.

    Hope this is helpful.

    Regards,
    Nikifor
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
2 posts, 0 answered