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

Duplicated history entries on navigation initialization with pushState support enabled

    Details

      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: