Browser back not working

  • Link to .capx file (required!):

    dropbox.com/s/7xnwut2nw0om4cq/no_back.capx

    Steps to reproduce:

    1. Preview game.

    2. Navigate to google.com (or any other site).

    3. Navigate to game (localhost:50000)

    4. Click on image

    Observed result:

    Error message indicating Object [object global] has no method 'back'

    Expected result:

    Should return to google.com (or whatever the previous site was)

    Browsers affected:

    Chrome: yes

    Firefox: no

    Internet Explorer: yes

    Operating system & service pack:

    Win 7 64 bit

    Construct 2 version:

    127 & 131 (tested in both)

  • The correct action to use in this case is 'forward', since you've already gone back. But there shouldn't be a JS error, that should be fixed in the next build. It also looks like at least Chrome has deprecated and removed the automatic forward/back navigation features, so maybe we should just remove them...

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thank you for responding.

    The correct action is not forward. When I said "navigate back to the game", I didn't mean hit the back button. I've updated the original post to be clearer.

    I think those navigation features should definitely be removed if they don't work. They are misleading. What I ended up doing was having the browser navigate to a URL and directing it to Browser.Referrer. That's essentially the same thing.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)