@nitra/vite-boot 3.1.3 → 3.1.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/router.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/vite-boot",
3
- "version": "3.1.3",
3
+ "version": "3.1.5",
4
4
  "description": "Vite boot",
5
5
  "type": "module",
6
6
  "exports": {
package/src/router.js CHANGED
@@ -23,7 +23,7 @@ export function canUserAccess(to) {
23
23
  if (!token) {
24
24
  // Записуємо поточний урл в session storage
25
25
  // щоб потім на нього повернути після логіну
26
- sessionStorage.setItem('url-before-logout', to.pathname)
26
+ sessionStorage.setItem('url-before-logout', to.path)
27
27
  return false
28
28
  }
29
29
  // Якщо перший раз запускаємо - завантажуємо користувача