codevdesign 0.0.50 → 0.0.51

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.
@@ -97,9 +97,12 @@
97
97
 
98
98
  const enregistrerLangue = (): void => {
99
99
  const langueDispo: string = current.value === 'fr' ? 'en' : 'fr'
100
- const hash = window.location.hash || '/'
100
+ let returnUrl = window.location.pathname + window.location.search
101
+ if (import.meta.env.MODE === 'development') {
102
+ returnUrl = '/'
103
+ }
101
104
  window.location.href =
102
- props.urlBase + `/Traducteur/SetLanguage?culture=${langueDispo}&returnUrl=${encodeURIComponent(hash)}`
105
+ props.urlBase + `/Traducteur/SetLanguage?culture=${langueDispo}&returnUrl=${encodeURIComponent(returnUrl)}`
103
106
  emit('changementLangue')
104
107
  }
105
108
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codevdesign",
3
- "version": "0.0.50",
3
+ "version": "0.0.51",
4
4
  "description": "Composants Vuetify 3 pour les projets Codev",
5
5
  "files": [
6
6
  "./**/*.vue",