Drupal – Get Current URL

Use the following code to get the current page URL.

global $base_url;
print $base_url.request_uri();

 

Done =)

Reference: StackOverflow – How to get the full URL of a Drupal page

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.