Update URL when paginating groups
This commit is contained in:
parent
2a33752cb4
commit
ceedefec54
|
@ -94,6 +94,11 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||||
this.isLoading = false;
|
this.isLoading = false;
|
||||||
$.scrollTo(0);
|
$.scrollTo(0);
|
||||||
|
|
||||||
|
const currentPath = gl.utils.mergeUrlParams({ page: page }, window.location.href);
|
||||||
|
window.history.replaceState({
|
||||||
|
page: currentPath,
|
||||||
|
}, document.title, currentPath);
|
||||||
|
|
||||||
this.updateGroups(response.json());
|
this.updateGroups(response.json());
|
||||||
this.updatePagination(response.headers);
|
this.updatePagination(response.headers);
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue