Skip to content

Commit b15ebea

Browse files
committed
fix: update CV redirect path to the latest version
1 parent df631e9 commit b15ebea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/middleware/redirect-cv.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default defineEventHandler((event) => {
44
const reqUrl = event.node.req.url ?? '';
55

66
// Check if the request URL matches the old CV path
7-
if (reqUrl.startsWith('/pdf/CV-Pascal-Achard-20.pdf')) {
7+
if (reqUrl.startsWith('/pdf/CV-Pascal-Achard-20')) {
88
// permanent redirect to the new path
99
return sendRedirect(event, '/pdf/CV-Pascal-Achard.pdf', 301);
1010
}

0 commit comments

Comments
 (0)