Breadcrumbs Default.aspx

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
Tomgard
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 108
Joined: Sun Jul 20, 2008 1:00 pm

Breadcrumbs Default.aspx

Post by Tomgard » Tue Sep 30, 2008 1:03 pm

the "home" link in the breadcrumb trails are all pointing to "http://www.mysite.com/Default.aspx". How would I get that to point to http://www.mysite.com" (SEO says I need to lose the default.aspx)
Bryan Bundgaard
AC7 User http://www.SchoolSupplyStore.com

User avatar
Shopping Cart Admin
AbleCommerce Admin
AbleCommerce Admin
Posts: 3055
Joined: Mon Dec 01, 2003 8:41 pm
Location: Vancouver, WA
Contact:

Re: Breadcrumbs Default.aspx

Post by Shopping Cart Admin » Tue Sep 30, 2008 1:18 pm

Hello,

I'm not positive this is the correct file, but it looks right.

/Web.sitemap (in the root of your store).

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
    <siteMapNode url="~/Default.aspx" title="Home" description="Home page">
Try changing it to:

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
    <siteMapNode url="~/" title="Home" description="Home page">
Thanks for your support

Shopping Cart Guru
AbleCommerce.com
Follow us on Facebook

User avatar
Tomgard
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 108
Joined: Sun Jul 20, 2008 1:00 pm

Re: Breadcrumbs Default.aspx

Post by Tomgard » Tue Sep 30, 2008 1:49 pm

That did not seem to fix the CategoryGridPage breadcrumb issue. It appears that the change needs to be made in the CategoryBreadCrumbs.ascx but I could be wrong on that as I am not seeing anything obvious.
Bryan Bundgaard
AC7 User http://www.SchoolSupplyStore.com

User avatar
Shopping Cart Admin
AbleCommerce Admin
AbleCommerce Admin
Posts: 3055
Joined: Mon Dec 01, 2003 8:41 pm
Location: Vancouver, WA
Contact:

Re: Breadcrumbs Default.aspx

Post by Shopping Cart Admin » Tue Sep 30, 2008 2:00 pm

Hello,

Ok, perhaps guess number two will be correct.

/App_Code/NavigationHelper.cs

Code: Select all

    /// <summary>
    /// Gets the url to the store homepage.
    /// </summary>
    /// <returns>A string containting the url to the store homepage</returns>
    public static string GetHomeUrl()
    {
        return "~/Default.aspx";
change to (remove 'Default.aspx'):

Code: Select all

    /// <summary>
    /// Gets the url to the store homepage.
    /// </summary>
    /// <returns>A string containting the url to the store homepage</returns>
    public static string GetHomeUrl()
    {
        return "~/";
Thanks for your support

Shopping Cart Guru
AbleCommerce.com
Follow us on Facebook

User avatar
Tomgard
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 108
Joined: Sun Jul 20, 2008 1:00 pm

Re: Breadcrumbs Default.aspx

Post by Tomgard » Tue Sep 30, 2008 2:20 pm

Worked! Thanks Mike!
Bryan Bundgaard
AC7 User http://www.SchoolSupplyStore.com

Post Reply