How to get the root URL in ProcessWire?
To get the homepage or root URL in the ProcessWire you can use
urls->httpRoot; ?>
(or)
$config->urls->httpRoot; ?>
Reference URL: Configuration paths and URLs (Paths class) - ProcessWire API
You can share if you know any other way.