We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df631e9 commit b15ebeaCopy full SHA for b15ebea
1 file changed
server/middleware/redirect-cv.ts
@@ -4,7 +4,7 @@ export default defineEventHandler((event) => {
4
const reqUrl = event.node.req.url ?? '';
5
6
// Check if the request URL matches the old CV path
7
- if (reqUrl.startsWith('/pdf/CV-Pascal-Achard-20.pdf')) {
+ if (reqUrl.startsWith('/pdf/CV-Pascal-Achard-20')) {
8
// permanent redirect to the new path
9
return sendRedirect(event, '/pdf/CV-Pascal-Achard.pdf', 301);
10
}
0 commit comments