diff --git a/public/env.sample.js b/public/env.sample.js index 1852851..1b7072a 100644 --- a/public/env.sample.js +++ b/public/env.sample.js @@ -3,6 +3,8 @@ const config = { documentserver_key: '', // required baseurl: '', + // optional, will fallback to /selfservice + baseurl_selfservice: '/selfservice', // optional, will fallback to /imprint url_imprint: '', // optional, will fallback to /privacy diff --git a/src/App.vue b/src/App.vue index a286f1d..3ebb2e4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,5 +3,5 @@ \ No newline at end of file diff --git a/src/components/Register.vue b/src/components/Register.vue index 0480769..452e2ca 100644 --- a/src/components/Register.vue +++ b/src/components/Register.vue @@ -276,9 +276,6 @@ const state = reactive({ && userdetails.value.lastname && (provide_address.value === false || provide_address.value === true && (userdetails.value.address.street.trim() && userdetails.value.address.city.trim() && isPostalCode(userdetails.value.address.zipcode, "DE")))) }) const toast = useToast(); -const $t = this.$t.bind(this) -console.log($t); -// console.log(i18n('you_have_been_registered')); function login() { userdetails = userdetails.value; if (userdetails.phone === "" || isMobilePhone(userdetails.phone)) { @@ -310,10 +307,7 @@ function login() { axios.post(url, postdata) .then(({ data }) => { const token = btoa(data.token); - // location.replace("../profile/" + token) - router.push("../profile/" + token); - // - toast.success($t('you_have_been_registered')); + router.push(`${config.baseurl_selfservices}/profile/${token}`); }) .catch((error) => { console.log(error);