Browser history added
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
Problem to solve
After navigating through pages of artifacts on the artifacts page, using the browser back button navigates away from the page altogether.
Proposal applied/ problem solved in this MR
Push page changes to the browser history so that the browser back button will navigate back through the pages of artifacts that were viewed.
Browser history added
Changelog:added
Screenshots or screen recordings
| Before Screen Shot | After Screen Record |
|---|---|
![]() |
Screencast_from_2025-01-21_14-44-26 |
How to set up and validate locally
- Go to any project which have more than 20 artifacts or create new project with more than 20 artifacts
- visit to page - http://gdk.test:3000/<group_name>/<project_name>/-/artifact
- In this mr http://gdk.test:3000/gitlab-org/artifact_test/-/artifact
- It will show pagination and browser history if more than 20 artifacts are present
References
Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #442649
Edited by 🤖 GitLab Bot 🤖
