Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the issue where the public dataset search result page displays pu…
…blic workflows after refreshing (#3230) ### Purpose: Currently, after refreshing the public dataset search result page, public workflow search results appear. The issue occurs because the URL check and type update are only triggered when the `NavigationEnd` event is detected. However, when the page is refreshed, it retains the default type, which is the workflow search results. ### Changes: Directly check the URL and update the type in OnInit. ### Demos: Before: before refreshing: ![image](https://github.com/user-attachments/assets/d604b1e3-06b0-4324-bc57-c16cc05bfa99) after refreshing: ![image](https://github.com/user-attachments/assets/e9450fa5-71a5-4ac6-9fed-ab7abf4b1516) After: before refreshing: ![image](https://github.com/user-attachments/assets/d604b1e3-06b0-4324-bc57-c16cc05bfa99) after refreshing: ![image](https://github.com/user-attachments/assets/f6010494-f960-41dd-b553-08a64c9e2594)
- Loading branch information