We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb12ed1 commit 7a1cfdaCopy full SHA for 7a1cfda
src/components/reo-script.tsx
@@ -19,7 +19,8 @@ const ReoScript = () => {
19
20
// Handle blog post filtering
21
// Regex handles both URL formats: /blog/slug (default locale) and /locale/blog/slug (non-default locale)
22
- const blogPathMatch = pathname.match(/^(?:\/[^/]+)?\/blog\/([^/]+)$/);
+ // Also handles optional trailing slash
23
+ const blogPathMatch = pathname.match(/^(?:\/[^/]+)?\/blog\/([^/]+)\/?$/);
24
if (blogPathMatch) {
25
const slug = blogPathMatch[1];
26
// Use pre-generated mapping for instant lookup
0 commit comments