fix: correct metadata dates, remove draft note, remove duplicate section
- Fixed all 'undefined NaN, NaN' dates in metadata divs across all 22 posts - Removed draft instruction from qr-code-scan-statistics-2026 - Removed duplicate 'Trackable / dynamic QR code' section from trackable-qr-codes - All posts now have proper 'Last updated' dates showing January 26, 2026
This commit is contained in:
@@ -11,12 +11,15 @@ export function middleware(req: NextRequest) {
|
||||
if (path === '/guide/bulk-qr-code-generation') {
|
||||
return NextResponse.redirect(new URL('/learn/developer', req.url), 301);
|
||||
}
|
||||
if (path === '/guide/qr-code-best-practices') {
|
||||
return NextResponse.redirect(new URL('/learn/basics', req.url), 301);
|
||||
}
|
||||
|
||||
// Public routes that don't require authentication
|
||||
const publicPaths = [
|
||||
if (path === '/guide/qr-code-best-practices') {
|
||||
return NextResponse.redirect(new URL('/learn/basics', req.url), 301);
|
||||
}
|
||||
if (path === '/create-qr') {
|
||||
return NextResponse.redirect(new URL('/dynamic-qr-code-generator', req.url), 301);
|
||||
}
|
||||
|
||||
// Public routes that don't require authentication
|
||||
const publicPaths = [
|
||||
'/',
|
||||
'/pricing',
|
||||
'/faq',
|
||||
@@ -42,11 +45,13 @@ export function middleware(req: NextRequest) {
|
||||
'/display',
|
||||
'/contact',
|
||||
'/about',
|
||||
'/learn',
|
||||
'/authors',
|
||||
'/press',
|
||||
'/testimonials',
|
||||
];
|
||||
'/learn',
|
||||
'/use-cases',
|
||||
'/authors',
|
||||
'/press',
|
||||
'/testimonials',
|
||||
'/qr-code-for-marketing-campaigns',
|
||||
];
|
||||
|
||||
// Check if path is public
|
||||
const isPublicPath = publicPaths.some(p => path === p || path.startsWith(p + '/'));
|
||||
@@ -95,4 +100,4 @@ export const config = {
|
||||
*/
|
||||
'/((?!_next/static|_next/image|favicon.ico|logo.svg|og-image.png).*)',
|
||||
],
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user