mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: login and signup orgslug missing bug
This commit is contained in:
parent
2e618d9c5a
commit
f4794ebaf2
5 changed files with 15 additions and 14 deletions
|
|
@ -3,7 +3,7 @@ import learnhouseIcon from 'public/learnhouse_bigicon_1.png'
|
|||
import Image from 'next/image'
|
||||
import { getOrgLogoMediaDirectory } from '@services/media/media'
|
||||
import Link from 'next/link'
|
||||
import { getUriWithOrg } from '@services/config/config'
|
||||
import { getUriWithOrg, getUriWithoutOrg } from '@services/config/config'
|
||||
import { useLHSession } from '@components/Contexts/LHSessionContext'
|
||||
import React, { useEffect } from 'react'
|
||||
import { MailWarning, Ticket, UserPlus } from 'lucide-react'
|
||||
|
|
@ -191,7 +191,7 @@ const NoTokenScreen = (props: any) => {
|
|||
"Invite code is valid, you'll be redirected to the signup page in a few seconds"
|
||||
)
|
||||
setTimeout(() => {
|
||||
router.push(`/signup?inviteCode=${inviteCode}&orgslug=${org.slug}`)
|
||||
router.push(getUriWithoutOrg(`/signup?inviteCode=${inviteCode}&orgslug=${org.slug}`))
|
||||
}, 2000)
|
||||
} else {
|
||||
toast.error('Invite code is invalid')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue