Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL rewrites for attachments added to classic editor not working #664

Open
zubairali6 opened this issue Feb 2, 2024 · 2 comments
Open

Comments

@zubairali6
Copy link

zubairali6 commented Feb 2, 2024

The URL rewrites are working fine for attachments uploaded via the media library, however when I add an attachment/media via the classic editor tiny MCE the link for the attachment is not getting rewritten and is instead the default base URL for wordpress. Is this a known issue?

@tomjn
Copy link
Contributor

tomjn commented Feb 2, 2024

Do you have examples?

@zubairali6
Copy link
Author

zubairali6 commented Feb 2, 2024

So investigating this a bit furthur I can see that it is in fact rewriting URLs when uploading attachment for the first time in the classic editor, however it hasn't rewritten URLs for pages that had already had attachments uploaded prior to the switch to S3 uploads (we were on offload media plugin before).

So for example,

When going to a page on the website where an editor had uploaded an attachement using the tiny MCE classic editor before the switch to S3 uploads, I can see that it still has the old default wp URL e.g https:webuat-cm/uploads/wp-content/testfile.doc when it should be the S3 URL.
Screenshot 2024-02-02 at 16 45 29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants