Commit ceedefec authored by Alfredo Sumaran's avatar Alfredo Sumaran

Update URL when paginating groups

parent 2a33752c
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment