In joomla php there I can use $this->baseurl to get the base path, but I wanted to get the base path in jquery.
$this->baseurl
The base path may be any of the follo
Split and join the URL:
const s = 'http://free-proxy.cz/en/abc' console.log(s.split('/').slice(0,3).join('/'))