I have custom routes using routes everything works fine, my problem is when a media is inserted it always bypass my routing.
domain/route1/internal-id if there is any media that matches
domain/wp-uploads/internal-id.jpg is used. Not even a 404 shows.
Tried everything I could from my search (example: Disable Attachment Pages Completely). don't know what to try more, any suggestions?