9 lines
339 B
JavaScript
9 lines
339 B
JavaScript
export default defineEventHandler((event) => {
|
|
const url = event.node.req.url;
|
|
|
|
// Check if the URL contains literal [id] which should be a parameter
|
|
if (url && url.includes('/execution/form/[id]')) {
|
|
// Redirect to a more appropriate error page or handle differently
|
|
return sendRedirect(event, '/execution', 302);
|
|
}
|
|
});
|