Actions

JURI/current

From Joomla! Documentation

A static method that returns the current request URI without the query or fragment parts.

Syntax

string current()

Example

echo 'Joomla current URI is ' . JURI::current() . "\n";

might output

Joomla current URI is http://localhost/joomla/index.php

See also