1 2 3 4 5 6 |
// Get the full current URI. $uri = JUri::getInstance(); $current = rawurldecode($uri->toString(array('scheme', 'host', 'port', 'path', 'query', 'fragment'))); // the server-relative URL $currRel = rawurldecode($uri->toString(array('path', 'query', 'fragment'))); |