Skip to content

Commit 4e2eea7

Browse files
committed
ensure next params keeps to be encoded as URI between moving to/from login page
1 parent c944eef commit 4e2eea7

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

adminforth/plugins/open-signup/Changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11

2+
## [v1.0.8]
23

4+
# Fixed
5+
- ensure next params keeps be encoded as URI between moving to/from login page
36

47
## [v1.0.7]
58

adminforth/plugins/open-signup/custom/SignupPage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
{{$t('Please check your email at')}} {{ sentToEmail }} {{$t('to confirm your email address.')}}
122122
</div>
123123
<p class="text-gray-500 dark:text-gray-400 font-sm text-right mt-3">
124-
{{$t('Already have an account?')}} <Link :to="`/login${route.query.next ? `?next=${route.query.next}` : ''}`">{{ $t('login here') }}</Link>
124+
{{$t('Already have an account?')}} <Link :to="`/login${route.query.next ? `?next=${encodeURIComponent(route.query.next)}` : ''}`">{{ $t('login here') }}</Link>
125125
</p>
126126
</div>
127127
</div>

adminforth/plugins/open-signup/custom/SignupUnderLogin.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<p class="text-gray-500 dark:text-gray-400 font-sm text-left mt-3">
33
{{$t('Have no account?')}}
4-
<Link :to="`/signup${route.query.next ? `?next=${route.query.next}` : ''}`">
4+
<Link :to="`/signup${route.query.next ? `?next=${encodeURIComponent(route.query.next)}` : ''}`">
55
{{$t('sign up now')}}
66
</Link>
77
</p>

adminforth/plugins/open-signup/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

adminforth/plugins/open-signup/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@adminforth/open-signup",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"main": "dist/index.js",
55
"types": "dist/index.d.ts",
66
"type": "module",

0 commit comments

Comments
 (0)