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

Duplicated history entries on navigation initialization with pushState support enabled

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Done
    • 3.2.4.Final
    • 4.0.0.CR1
    • Errai Navigation
    • None

    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

      Attachments

        Activity

          People

            mbarkley_jira Max Barkley (Inactive)
            aleshkin_jira Alexander Leshkin (Inactive)
            Archiver:
            ranumula@redhat.com Raju Anumula

            Dates

              Created:
              Updated:
              Resolved:
              Archived: