JSFiddle - React, Tailwind, and code Playground
JavaScript
let url = "http://cloud.as/group-queues#/123/#re"
if (url.substr(0, url.lastIndexOf("/#"))) {
url = url.substr(0, url.lastIndexOf("/#"))
}
console.log(url);
//let a = url.match(/(.*\#\/)(.*)/)[2];
//console.log(a)