Confirm visually that URLs are reachable

Created on 12 November 2022, over 2 years ago
Updated 8 March 2024, about 1 year ago

Problem/Motivation

After inserting the two URLs (HTTP and HTTPS) in the form at /admin/config/system/matomo and clicking "Save configuration", the URLs are actually tested for reachability.

But there is no indication that this happened. You only get feedback if a URL is not reachable:

Warning message
The validation of "https://example.orgz/matomo.php" failed with an exception "cURL error 6: Could not resolve host: example.orgz (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)" (HTTP code 0).

Steps to reproduce

  • Add two reachable URLs, and see that you get no positive feedback
  • Add one or more unreachable URLs, and see that you get feedback

Proposed resolution

Give positive feedback that the URL(s) are reachable, with one of these two methods:

1. Show message at the top (current MR adds this)

After saving configuration, show a positive feedback message at the top, together with the green Status message that the URLs are reachable:

Status message
The validation of "http://example.org/matomo.php" was succesful.
The validation of "https://example.org/matomo.php" was succesful.
The configuration options have been saved.

2. Show green check-mark icon after URLs in form

Add a green check-mark icon after the URLs in the form, with title="The URL is reachable", which is shown when you hover over it.

Remaining tasks

  • Decide to give positive feedback, or not
  • Decide to show feedback at the top (easiest solution) or as a green check-mark icon after the URLs

Or we could even decide to do both?

User interface changes

API changes

Data model changes

Feature request
Status

Needs review

Version

2.0

Component

User interface

Created by

🇩🇰Denmark ressa Copenhagen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇺Australia thursday_bw

    Oh, I just experienced this, I have just installed matomo on my development site and I had a typo in both the http and https URLs.

    I got "This website encountered an unexpected error" and had to view my PHP error log to see the same error as reported above.

    Uncaught PHP Exception GuzzleHttp\\Exception\\ConnectException: "cURL error 6: Could not resolve host: mispelledsubdoman.example.com (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://mispelledsubdoman.example.com/matomo.php" at /app/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 210, referer: https://mispelledsubdoman.example.com/admin/config/system/matomo

    Adding this comment, and following the issue, I'll try and do a review if I find some time.

Production build 0.71.5 2024