File tree Expand file tree Collapse file tree
core/src/components/login Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5151</template >
5252
5353<script type="ts">
54- import { browserSupportsWebAuthn } from ' @simplewebauthn/browser'
5554import { getBaseUrl } from ' @nextcloud/router'
55+ import { browserSupportsWebAuthn } from ' @simplewebauthn/browser'
5656import { defineComponent } from ' vue'
5757import NcEmptyContent from ' @nextcloud/vue/components/NcEmptyContent'
5858import NcTextField from ' @nextcloud/vue/components/NcTextField'
@@ -150,8 +150,8 @@ export default defineComponent({
150150 .then (({ defaultRedirectUrl }) => {
151151 logger .debug (' Logged in redirecting' )
152152 if (redirectUrl) {
153- if (redirectUrl .charAt (0 ) !== " / " ) {
154- redirectUrl = " / " + redirectUrl;
153+ if (redirectUrl .charAt (0 ) !== ' / ' ) {
154+ redirectUrl = ' / ' + redirectUrl
155155 }
156156 window .location .href = getBaseUrl () + redirectUrl
157157 } else {
You can’t perform that action at this time.
0 commit comments