When a route is matched with media attachment it shows that and ignores my routing


I have custom routes using routes everything works fine, my problem is when a media is inserted it always bypass my routing.

For example:

domain/route1/internal-id if there is any media that matches internal-id the 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?

Jose 2 months 0 Answers 10 views 0

Leave an answer