utkarsharma2 commented on code in PR #41995:
URL: https://github.com/apache/airflow/pull/41995#discussion_r1744075302
##########
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:
I think it should be fine without 8080 since we are just validating the URL,
right?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]