diff --git a/frontend/src/components/SidebarPlugin/SideBar.spec.js b/frontend/src/components/SidebarPlugin/SideBar.spec.js index 385c2bbef..993fdf195 100644 --- a/frontend/src/components/SidebarPlugin/SideBar.spec.js +++ b/frontend/src/components/SidebarPlugin/SideBar.spec.js @@ -82,7 +82,7 @@ describe('SideBar', () => { }) describe('static menu items', () => { - describe("member's area", () => { + describe("member's area without publisher ID", () => { it('has a link to the elopage', () => { expect(wrapper.findAll('li').at(0).text()).toContain('members_area') }) @@ -109,7 +109,7 @@ describe('SideBar', () => { }) }) - describe('with hasElopage is true', () => { + describe('member's area with publisher ID', () => { beforeEach(() => { mocks.$store.state.hasElopage = true }) diff --git a/frontend/src/components/SidebarPlugin/SideBar.vue b/frontend/src/components/SidebarPlugin/SideBar.vue index 9dc0a2765..5971b7b4e 100755 --- a/frontend/src/components/SidebarPlugin/SideBar.vue +++ b/frontend/src/components/SidebarPlugin/SideBar.vue @@ -114,7 +114,7 @@ export default { getElopageLink() { return this.$store.state.hasElopage ? `https://elopage.com/s/gradido/sign_in?locale=${this.$i18n.locale}` - : `https://elopage.com/s/gradido/basic-de/payment?locale=${this.$i18n.locale}&prid=111&pid=${this.$store.state.publisherId}&firstName=${this.$store.state.firstName}&lastName=${this.$store.state.lastName}&email=${this.$store.state.email}` + : encodeURL(`https://elopage.com/s/gradido/basic-de/payment?locale=${this.$i18n.locale}&prid=111&pid=${this.$store.state.publisherId}&firstName=${this.$store.state.firstName}&lastName=${this.$store.state.lastName}&email=${this.$store.state.email})` }, }, }