Welcome to Mediachase Community Sign in | Join | Help    
in Search   

URLRewriting and the Continue Shopping button

Last post Mon, Jun 29 2009, 2:34 PM by truthbrother. 3 replies.
Sort Posts: Previous Next
  •  Fri, Jun 26 2009, 12:45 PM 11043

    URLRewriting and the Continue Shopping button

    I'm not sure how or when this happened but the Continue Shopping button on the checkout page is no longer working in my application.  The ClientContext.Context.LastCatalogPageUrl value is being set to http://localhost:1686/PublicStore/product/8-Tooth-Gear,3182,211.aspx?id=3182&cid=211 instead of
    http://localhost:1686/PublicStore/product/8-Tooth-Gear,3182,211.aspx
    The ClientContext.Context.IsUrlRewritten is never getting set to true for some reason.

    The PageHandler GetHandler function never gets to set the IsUrlReWritten to true because the file exists.
            public IHttpHandler GetHandler(HttpContext context, string requestType,
               string url, string pathTranslated)
            {
                if (File.Exists(pathTranslated))
                {
                    return PageParser.GetCompiledPageInstance(url, pathTranslated, context);
                }

                ErrorsError[] errors = new ErrorsError[] { };
                SiteNode[] nodes = ClientCatalog.LookupPages(new string[] { CommonHelper.GetRelativeUrl(url) }, new string[] { "ItemAttributes", "AccessLevels", "ItemMetaAttributes" }, ref errors);

                if (nodes != null && nodes.Length > 0 && nodes[0] != null)
                {
                    ClientContext.Context.IsUrlReWritten = true;
                    context.Items["PageNode"] = nodes[0];
                    return PageParser.GetCompiledPageInstance("~/Custom/CustomPageHandler.aspx", context.Server.MapPath("~/Custom/CustomPageHandler.aspx"), context);
                }
                else
                {
                    ClientContext.Context.IsUrlReWritten = false;
                    return PageParser.GetCompiledPageInstance(url, pathTranslated, context);
                }
            }

  •  Sat, Jun 27 2009, 2:21 AM 11044 in reply to 11043

    Re: URLRewriting and the Continue Shopping button

    Hello,

    What version of the ECF are you running?

    What OS is your server running on?

    Did anything change on that server recently - new code, windows update, etc that you think could have triggered this?

    Mediachase Support
  •  Sun, Jun 28 2009, 10:56 AM 11045 in reply to 11044

    Re: URLRewriting and the Continue Shopping button

    I'm sure it is a code change that I did but I'm just not sure how the URL rewriting is supposed to be working. It's 4.1 heavily modified.  But the code I've shown is the original PageHandler code.  I'm trying to figure out how it should work then I can figure out where things are going south.
  •  Mon, Jun 29 2009, 2:34 PM 11046 in reply to 11045

    Re: URLRewriting and the Continue Shopping button

    Here are a couple of posts that may help:
    http://www.mediachase.com/Community/forums/thread/4245.aspx
    http://www.mediachase.com/Community/forums/thread/2983.aspx

    Also, if you have antivirus running on the server, make sure it is configured to ignore the .NET ASP temp folders. Or you can temporarily turn it off to diagnose the problem.

    Hope this helps.
View as RSS news feed in XML
Site Terms | Privacy Policy | About Us | Contact Us
Running on Mediachase eCommerce Framework 4.0.
  Copyright © Mediachase, LTD. 1997-2006. All Rights Reserved

E-commerce, HelpDesk, Service Desk & Project Management Software, alternatives to Microsoft Project Server & Sharepoint Collaboration Server
project management software | microsoft project server | sharepoint collaboration server | issues management, helpdesk & service desk
Powered by Community Server, by Telligent Systems