Skip to content

Flash messages do not work after loading a file from a page #962

Open
@pro2s

Description

@pro2s

We use oro platform version 2.6.*
Unfortently I can not check on new version of oro/platform.
We encountered an issue with Flash messages.
Steps to reproduce:

  1. Download some file from the page, in our case, a link from the grid.
  2. Open another page
  3. Perform an action that redirects the user to another page and shows the user a flash message.

Result
Flash message isn't displayed
Expected result
Flash message is displayed on the current page

In our case, this is because, after clicking on the download link, the oroui/js/app/views/page/messages-view component receives the beforeunload event and switches to pageIsGoingToReload mode. As a result, flash messages are opened only on the next page after the one on which they should be shown.

Has anyone encountered such an issue and are there any solutions?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions