potiuk commented on code in PR #41995: URL: https://github.com/apache/airflow/pull/41995#discussion_r1744074896
########## airflow/www/static/js/dag/details/taskInstance/ExtraLinks.tsx: ########## @@ -57,8 +57,15 @@ const ExtraLinks = ({ if (!url) { return true; } - const urlRegex = /^(https?:)/i; - return urlRegex.test(url); + const path = new URL(url, "http://localhost"); Review Comment: (and we are just doing this to parse the UIRL and see if it's "correct" and produces http protocol -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org