FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix REST API support for plain permalinks. by peterwilsoncc · Pull Request #457 · WordPress/performance · GitHub

Fix REST API support for plain permalinks. - #457

Merged
felixarntz merged 1 commit into
trunkfrom
fix/456-rest-route
Aug 8, 2022
Merged

Fix REST API support for plain permalinks.#457
felixarntz merged 1 commit into
trunkfrom
fix/456-rest-route

Conversation

peterwilsoncc commented Jul 28, 2022
edited by felixarntz
Loading

Copy link
Copy Markdown
Contributor

Summary

Ensure the WebP fallback JavaScript works with sites using plain permalinks.

Fixes #456.

Relevant technical choices

I decided to copy the approach used in the @wordpress/apiFetch rootUrl middleware that handles this exact issue. It seems to work.

Ensures that the querystring does not have a double ? if the site is configured using plain permalinks.

Checklist

  • PR has either [Focus] or Infrastructure label.
  • PR has a [Type] label.
  • PR has a milestone or the no milestone label.

peterwilsoncc added [Type] Bug An existing feature is broken [Focus] Images no milestone PRs that do not have a defined milestone for release labels Jul 28, 2022
mxbclang removed the no milestone PRs that do not have a defined milestone for release label Jul 28, 2022
mukeshpanchal27 added this to the 1.4.0 milestone Jul 28, 2022

jjgrainger left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks @peterwilsoncc looks good

adamsilverstein left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Nice!

mukeshpanchal27 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

🚀

felixarntz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@peterwilsoncc Great catch, thanks!

felixarntz merged commit f828649 into trunk Aug 8, 2022
felixarntz deleted the fix/456-rest-route branch August 8, 2022 14:19
swissspidy added [Plugin] Modern Image Formats Issues for the Modern Image Formats plugin (formerly WebP Uploads) and removed [Module] WebP Support labels Jul 26, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Plugin] Modern Image Formats Issues for the Modern Image Formats plugin (formerly WebP Uploads) [Type] Bug An existing feature is broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WebP Module fallback.js does not support REST API plain permalinks.

7 participants


Back | FazBrowse Home | New Git URL