DrupalDrupal tips and tricks

Drupal tips and tricks

Get the URI/URL of the current page

$current_uri = check_plain(request_uri());

 

If your URL is https://mysite.com/drupal/node/6 – $current_uri will be /drupal/node/6

Categories: Drupal

Comments

No Comments Yet. Be the first?

Post a comment

Your email address will not be published. Required fields are marked *