Skip to content

After changed to createWebHistory, reload browser using F5 renders an empty page #333

@nicovil

Description

@nicovil

Describe the bug
Before commit 65088bc related with issue #300 when you press F5 the page is reloaded as it should. However after changing createMemoryHistory to createWebHistory the URL is rewritten and F5 doesn't works anymore.

To Reproduce
1.- Click OPTIONS from extension menu
2.- It will open 'chrome-extension://EXT_ID/src/ui/options-page/index.html' and then redirected immediately to chrome-extension://EXT_ID/options-page
3.- Options page is shown
4.- Press F5

Result: blank page

Expected behavior
As it was happening before when createMemoryHistory was being used, when you click F5 the same page should be rendered.

Screenshots
N/A

Desktop (please complete the following information):

  • Windows 11
  • Chrome
  • Version 139.0.7258.155 (64 bits)

Additional context
Rolling back "createWebHistory" to "createMemoryHistory" makes everything work except the problem for which this change was introduced, the UPDATE page is not loaded because querystring is not retrieved using this type of history.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions