gutenberg-mobile icon indicating copy to clipboard operation
gutenberg-mobile copied to clipboard

Link Settings Attachment Page option on unpublished posts results in broken links and 404 errors

Open ttahmouch opened this issue 3 years ago • 2 comments

Describe the bug The Attachment Page appears to be a 404 "Resource Not Found" page when linking to the attachment page on the File block in both an Atomic site and Jeptack self-hosted site. It works correctly when linking directly to the Media File, and opens it in my device browser.

Update: This same issue occurs for Gallery and Image blocks as well. It appears that the URL is always incorrect if the Attachment Page option is selected before publishing the post. https://github.com/wordpress-mobile/gutenberg-mobile/issues/4504#issuecomment-1690413091 Also, this impacts all types of WordPress sites, not just Atomic and Jetpack-connected.

Sanity Tests

To Reproduce File block - The Link To Block Setting should open - steps

Expected behavior The attachment page should not be a 404 page.

Smartphone (please complete the following information): iPhone 13 Pro Max (15.1.1)

Additional context: Sanity Test - 1.69.0

ttahmouch avatar Jan 21 '22 19:01 ttahmouch

👋 @ttahmouch, thanks for the ticket!

Can you also check if the same flow works or not via the web editor?

Also, is this an iOS issue or happens on Android as well? Thanks!

hypest avatar Feb 09 '22 15:02 hypest

Updating this issue to include Gallery and Image blocks as well. It appears the "Attachment Page" option currently requires on publish the post before selecting the "Attachment Page" option. Otherwise, an incorrect URL is set for the link.

dcalhoun avatar Aug 23 '23 18:08 dcalhoun