Could you update your @modal/(.)[post]/page.js route to use a more specific dynamic route pattern, such as [...post] or {slug} to prevent it from intercepting other routes unintentionally.
@modal/(.)[post]/page.js
[...post]
{slug}