forked from baron/baron-sso
fix userfront verify link routing
This commit is contained in:
@@ -35,7 +35,7 @@ const contentTypes = {
|
||||
const server = createServer((req, res) => {
|
||||
const url = new URL(req.url ?? '/', 'http://localhost');
|
||||
const pathname = decodeURIComponent(url.pathname);
|
||||
if (pathname === '/') {
|
||||
if (pathname === '/' && url.search === '') {
|
||||
res.statusCode = 302;
|
||||
res.setHeader('Location', '/ko/signin');
|
||||
res.setHeader('Cache-Control', 'no-cache, max-age=0, must-revalidate');
|
||||
|
||||
Reference in New Issue
Block a user