Page 1 of 1
Breadcrumbs Default.aspx
Posted: Tue Sep 30, 2008 1:03 pm
by Tomgard
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)
Re: Breadcrumbs Default.aspx
Posted: Tue Sep 30, 2008 1:18 pm
by Shopping Cart Admin
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">
Re: Breadcrumbs Default.aspx
Posted: Tue Sep 30, 2008 1:49 pm
by Tomgard
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.
Re: Breadcrumbs Default.aspx
Posted: Tue Sep 30, 2008 2:00 pm
by Shopping Cart Admin
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 "~/";
Re: Breadcrumbs Default.aspx
Posted: Tue Sep 30, 2008 2:20 pm
by Tomgard
Worked! Thanks Mike!