JSFiddle - React, Tailwind, and code Playground

by mohammadAdil

JavaScript

var str = "http://somewebsite.com/something/#/###/#/http://someotherwebsite.com/";
str =  "http://" + (str.split('http://')[2]);

$('body').append(str);