web-stories-wp: Valid link treated as invalid

Bug Description

Using a valid link (e.g. https://www.google.com) still triggers invalid link notification.

Expected Behaviour

No error message should be returned.

Steps to Reproduce

  1. Insert element
  2. Add link
  3. Insert https://www.google.com as URL
  4. See error message saying that the URL is invalid.

Screenshots

Additional Context

  • Plugin Version: master
  • Operating System:
  • Browser:

Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance Criteria

  1. An error message is displayed below the input field if the URL is invalid.
  2. The fields for the metadata (ie description and brand icon) should only appear if the user enters a valid url.

Implementation Brief

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 18 (6 by maintainers)

Most upvoted comments

Seems like a PHP-side solution is needed here. I’d see if we’re caching the requests and look more into the user agents used etc. Nevertheless, I think we should reassign and bring down from P1 to P2.