Skip to content
Snippets Groups Projects
Commit ceedefec authored by Alfredo Sumaran's avatar Alfredo Sumaran
Browse files

Update URL when paginating groups

parent 2a33752c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -94,7 +94,12 @@ document.addEventListener('DOMContentLoaded', () => {
this.isLoading = false;
$.scrollTo(0);
 
this.updateGroups(response.json());
const currentPath = gl.utils.mergeUrlParams({ page: page }, window.location.href);
window.history.replaceState({
page: currentPath,
}, document.title, currentPath);
this.updateGroups(response.json());
this.updatePagination(response.headers);
})
.catch(this.handleErrorResponse);
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment