Results 1 to 5 of 5
  1. #1

    Default How to fix: my website's home page disables the back button on your browser

    An unhappy visitor has just informed me that my home page "mouse traps" people to my site by disabling the "back button". I tested it and yes, when you click back on your browser, it just reloads my home page.

    I used to have a separate home page, but last year I converted it to a "define pages" page which is the main shop page of my cart to make it easier for me to change it (Tools -> Define Pages Editor).

    My website is mycustomstory.com.

    Can anyone tell me how to disable the "disable back button" behavior?

    Thanks.

  2. #2
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    889
    Plugin Contributions
    0

    Default Re: How to fix: my website's home page disables the back button on your browser

    I *think* it might be because you have a javascript in place on your index page that redirects to the shop directory

    Code:
    <script language="Javascript">
    <!--
    
    var URL   = "/shop"
    var speed =00000
    
    
    function reload() {
    location = URL
    }
    
    setTimeout("reload()", speed);
    //-->
    </script>
    I am by far no expert LOL but I am thinking given that any visitor is redirected to the shop directory, whenever they click the back button it would just take them 'back' to the main index page which then again redirects to your shop directory.....if that makes sense LOL

    There are other methods of redirecting, including meta refresh and .htaccess plus others :)
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  3. #3

    Default Re: How to fix: my website's home page disables the back button on your browser

    Thanks. I didn't even look at the index, I went straight to the shop index.

    Do you know how to fix it?

    When I moved to a new hosting company, they suggested I lose my landing page and just have people start on my shop page. It appears instead of removing the landing page and making my home page my shop page, they just did a redirect.

    Is there some code I could add to the index page that would do "if user clicks back then override redirect"?

  4. #4

    Default Re: How to fix: my website's home page disables the back button on your browser

    I should add that I did change the code to:

    <html>
    <head>
    <title>My Custom Story Redirect to Shop</title>
    <META http-equiv="refresh"
    content="0;URL=http://mycustomstory.com/shop/">

    </head>
    </html>

    And tested it with the same results on Firefox. I just also tested on IE and it works properly (allows the user to go to the website they were on before mine).

    And ideas on how to make it work for Firefox as well are greatly appreciated.

    thanks.

  5. #5

    Default Re: How to fix: my website's home page disables the back button on your browser

    It's working now on both browsers. Thanks for your help!

 

 

Similar Threads

  1. Just Upgraded- can't edit home page title in browser bar
    By Elarya in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 6 Apr 2010, 02:36 AM
  2. Back Button leads to Page Not Found 404 error
    By wtashby in forum General Questions
    Replies: 1
    Last Post: 2 Sep 2009, 02:13 PM
  3. Back Button on product info page returning to previous category page ex. page 5
    By dharma in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 19 Mar 2008, 10:51 PM
  4. Admin Back Button takes me all the way to Home Page??
    By LilleyPadGifts in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 13 Sep 2007, 08:22 PM
  5. Replies: 2
    Last Post: 31 Jul 2007, 03:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •