JSFiddle - React, Tailwind, and code Playground

by bvotcode

HTML

<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script>
$(document).ready(function(){
$('a[href^="https://"]').each(function(){
var oldUrl = $(this).attr("href"); // Get current url
//var newUrl = oldUrl.replace("https://app.sohoadoanhnghiep.com/hangngay", "https://app.japanviet.vn/trangchu"); // Create new url
var newUrl = oldUrl.replace(/flow_data_dashboard_chi_tiet_internal_view_chung/g,"flow_data_dashboard_chi_tiet_internal_view_quan_ly"); // Create new url

$(this).attr("href", newUrl); // Set herf value
});
});
</script>
</head>
<body>
<p><a href="https://app.sohoadoanhnghiep.com/hangngay/abc">ABC</a></p>
<p><a href="https://xyz.domain2.com/xyz">XYZ</a></p>
</body>
</html>