JSFiddle - React, Tailwind, and code Playground
by davidmold
HTML
<html>
<head>
</head>
<body>
<h1>
Hello
</h1>
<div id="doutput">
</div>
</body>
</html>
JavaScript
var output = ''
var url = '/pdf/mypdf.pdf'
output += 'path = ' + url + '<br>'
var items = url.split('/')
items.shift()
items.shift()
murl = items.join(',')
console.log('now items is ' + murl)