@paris-ias/list 1.0.94 → 1.0.96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@paris-ias/list",
3
3
  "configKey": "list",
4
- "version": "1.0.94",
4
+ "version": "1.0.96",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.0",
7
7
  "unbuild": "3.5.0"
@@ -187,6 +187,10 @@ export const useRootStore = defineStore("rootStore", {
187
187
  },
188
188
  updatePage({ page, type }) {
189
189
  this.page = page;
190
+ const router = useRouter();
191
+ const query = router.currentRoute.value.query;
192
+ query.page = page > 1 ? page.toString() : void 0;
193
+ router.replace({ query });
190
194
  this.update(type);
191
195
  },
192
196
  async updateSearch({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "license": "AGPL-3.0-only",
3
3
  "main": "./dist/module.mjs",
4
- "version": "1.0.94",
4
+ "version": "1.0.96",
5
5
  "name": "@paris-ias/list",
6
6
  "repository": {
7
7
  "url": "git+https://github.com/IEA-Paris/list.git",