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

Redirect to post list table in case of admin bar validate request failure #1229

Merged
merged 1 commit into from
Jun 27, 2018

Conversation

westonruter
Copy link
Member

Fixes issue when clicking the Validate URL link in the admin bar:

image

Whereby if there is an HTTP request error the plugin currently redirects back to the page with query vars added to it (and no other indication of an error):

/?amp_validate_error=http_request_failed&amp_urls_tested=0

When instead it should redirect to the post list table:

image

@westonruter westonruter added this to the v1.0 milestone Jun 26, 2018
Copy link
Contributor

@kienstra kienstra left a comment

Choose a reason for hiding this comment

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

Approved

Hi @westonruter,
This looks good, and it's nice to have that notice when there's a failed request. Thanks for the nice screenshots, as usual 😄

@westonruter westonruter merged commit 18093fa into develop Jun 27, 2018
@westonruter westonruter deleted the fix/admin-bar-validate-url-request-failure branch July 5, 2018 15:35
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

Successfully merging this pull request may close these issues.

2 participants