Add redirect to layout's load
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { redirect } from '@sveltejs/kit';
|
||||
|
||||
export const load = ({ url }) => {
|
||||
console.log('url', url.hostname);
|
||||
|
||||
if (url.hostname === 'classroomio.com' || url.hostname === 'classroomio.netlify.app') {
|
||||
throw redirect(301, 'https://about.classroomio.com');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user