// Get the current page url automatically, in case you want to store it somewhere.
$uri = $this->request->uri;
$name = \CodeIgniter\HTTP\URI::createURIString($uri->getScheme(), $uri->getAuthority(), $uri->getPath());
echo md5($name);
// Get the current scheme and authority (includes domain) automatic, and append custom string.
$uri = $this->request->uri;
$name = \CodeIgniter\HTTP\URI::createURIString($uri->getScheme(), $uri->getAuthority(), 'some/path');
echo md5($name);
// Build your own, so you can delete it somewhere else.
// http://example.com/
echo md5(\CodeIgniter\HTTP\URI::createURIString('http', 'example.com', '/'));
// http://example.com/some/path
// DO NOT ADD / AT THE END!
echo md5(\CodeIgniter\HTTP\URI::createURIString('http', 'example.com', 'some/path'));