Skip to content

Commit

Permalink
Localization: Fixed delete account redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
Natanael Rodriguez Ramos authored and Natanael Rodriguez Ramos committed Jun 13, 2024
1 parent 7fd5526 commit 6a03604
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ export default {
},
data() {
return {
userConfirmation: ""
userConfirmation: "",
language: "en"
};
},
computed: {
Expand All @@ -68,6 +69,7 @@ export default {
mounted() {
if ( window.location.href.split("/")[3] == "es") {
useI18n().locale.value = "es";
this.language = "es";
}
},
methods: {
Expand All @@ -78,7 +80,7 @@ export default {
if (!this.error) {
this.closeDialog();
window.location = "/account";
window.location = "/" + this.language + "/account";
}
},
closeDialog() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default {
this.proActiveUntil = this.$filters.formatActiveUntil(proPlan.active_until);
this.isLocked = proPlan.is_locked;
if( proPlan.is_locked ){
window.location = "/account";
window.location = "/" + this.language + "/account";

Check warning

Code scanning / CodeQL

Client-side URL redirect Medium

Untrusted URL redirection depends on a
user-provided value
.
Untrusted URL redirection depends on a
user-provided value
.
}
this.$store.dispatch("sessions/load");
},
Expand Down

0 comments on commit 6a03604

Please sign in to comment.