Re: How do I get the URI of the current web page from my Drupal theme?
Hey used following in this code you get your own URL link, this code mostly use for “Back to Top” and same like this but following code is for “Back to Top” code, you able to edit this code.
This is PHP code:
<a href="/<?php print url($_GET['q'], NULL, NULL, TRUE); ?>#top">your message </a
This is DRUPAL code:
drupal_get_path_alias(reqURI())
This code will work on all types of version
$your_current_url = "http://" .$_SERVER['HTTP_HOST'].$_SERVER['REQURI'];
I'm the Proud Owner of the most dangerous weapon
known to man kind: Human Brain
Bookmarks