Add Prettier and ESLint tooling (Refs #77)
This commit is contained in:
@@ -3,7 +3,10 @@ import { redirect } from '@sveltejs/kit';
|
||||
/** Preserve bookmarked operation links and list filters. */
|
||||
export function load({ url }: { url: URL }) {
|
||||
if (url.pathname.startsWith('/deployments/collections/')) {
|
||||
redirect(308, url.pathname.replace('/deployments/collections/', '/collections/launches/') + url.search);
|
||||
redirect(
|
||||
308,
|
||||
url.pathname.replace('/deployments/collections/', '/collections/launches/') + url.search
|
||||
);
|
||||
}
|
||||
redirect(308, url.pathname.replace(/^\/deployments(?=\/|$)/, '/provisioning') + url.search);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user