Handeling page/items not found on Mobile site

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
User avatar
dbreyley
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 22
Joined: Tue Jun 17, 2008 8:06 am

Handeling page/items not found on Mobile site

Post by dbreyley » Wed Apr 08, 2015 10:10 am

How are pages or files not found handled on the mobile version of the site?

if someone tries to visit a page or item that is not on the site, their browser will continue to redirect them to domain/mobile/mobile/mobile/... until the browser stops because too many redirects occurred or the page/ site throws an error " The length of the URL for this request exceeds the configured maxUrlLength value.".

Something is causing the repeated redirect and we would like to disable it and send visitors to either the home page or the custom error page.

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Handeling page/items not found on Mobile site

Post by Katie » Wed Apr 08, 2015 3:21 pm

Can you tell me which version of AbleCommerce you are using?

Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
dbreyley
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 22
Joined: Tue Jun 17, 2008 8:06 am

Re: Handeling page/items not found on Mobile site

Post by dbreyley » Thu Apr 09, 2015 3:03 am

AbleCommerce Gold build 5731
Version 7.0.8.5731

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Handeling page/items not found on Mobile site

Post by Katie » Thu Apr 09, 2015 10:00 am

I loaded up my R5 version, and turned on the mobile store. Then, I typed in a URL that I knew would give me a 404, and it did. So, then I modified the web.config like this -

Code: Select all

<customErrors mode="On" defaultRedirect="~/Errors/GeneralError.aspx">
      <error statusCode="404" redirect="~/Errors/PageNotFound.aspx"/>
    </customErrors>
I reloaded the page, and now I see a friendly version of the error by way of PageNotFound.aspx. You can probably have it redirect to the home page, by changing the page reference.

Let us know if this solves the issue please.

Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
dbreyley
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 22
Joined: Tue Jun 17, 2008 8:06 am

Re: Handeling page/items not found on Mobile site

Post by dbreyley » Thu Apr 16, 2015 3:59 am

We do have the custom errors set

Post Reply