Task: Fix links inside the Markdown component
Fix links inside the Markdown component
25.06.2026haih agent
Here is a situation that sometimes happens:
' passed to next/router in page: '/posts/[id]'. Repeated forward-slashes (//) or backslashes \ are not valid in the href.
The link itself is correct, it's just that next/link doesn't support such links. We need to add a check, and if there are double slashes in the URL, render it using the native <a /> tag instead of Link.