diff --git a/public/env.sample.js b/public/env.sample.js index f2ebf25..c43a129 100644 --- a/public/env.sample.js +++ b/public/env.sample.js @@ -5,6 +5,8 @@ const config = { baseurl: '', // optional, will fallback to /selfservice/ baseurl_selfservice: '/selfservice/', + // full url (including fqdn) + baseurl_documentserver: 'http://localhost:4010/documents', // optional, will fallback to baseurl_selfservice/imprint url_imprint: '', // optional, will fallback to baseurl_selfservice/privacy diff --git a/src/views/Profile.vue b/src/views/Profile.vue index c22d580..25dc4d4 100644 --- a/src/views/Profile.vue +++ b/src/views/Profile.vue @@ -388,7 +388,7 @@ function delete_me() { function get_certificate() { toast("Generation in progress..."); const browserlocale = ((navigator.languages && navigator.languages[0]) || '').substr(0, 2); - let url = `${config.baseurl}documents/certificates?locale=${browserlocale}&download=true&key=${config.documentserver_key}`; + let url = `${config.baseurl_documentserver}certificates?locale=${browserlocale}&download=true&key=${config.documentserver_key}`; let postdata = Object.assign({}, state.fullobject); postdata.group = { name: postdata.group @@ -416,7 +416,7 @@ function get_certificate() { }) .catch((err) => { console.error(err); - toast.error("An error occured while deleting your profile data"); + toast.error("An error occured while generating your certificate"); }); } \ No newline at end of file