Update URL when paginating groups

This commit is contained in:
Alfredo Sumaran 2017-06-08 03:09:37 -05:00
parent 2a33752cb4
commit ceedefec54
1 changed files with 6 additions and 1 deletions

View File

@ -94,6 +94,11 @@ document.addEventListener('DOMContentLoaded', () => {
this.isLoading = false;
$.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.updatePagination(response.headers);
})