Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-1017

Duplicated history entries on navigation initialization with pushState support enabled

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.2.4.Final
    • Fix Version/s: 4.0.0.CR1
    • Component/s: Errai Navigation
    • Labels:
      None
    • Environment:

      Ubuntu 16.04.1 LTS
      Google Chrome 56.0.2924.51

      Description

      HistoryImplPushState.init() creates new entry in browser's history on host-page bootstraping.

      For example, if I'll open url http://localhost/pageName in new browser's window, then history stack will contain two entries:
      2: http://localhost/pageName, historyToken=/pageName
      1: http://localhost/pageName, historyToken=/pageName

      This caused by calling nativeUpdate (and native pushState) in init method. Instead of native pushState, navigation initialization logic should call native replaceState on initialization

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mbarkley Max Barkley
                Reporter:
                aleshkin Alexander Leshkin
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: