What Path is the current page in Drupal 7

When you are writing code that will fit into a page, how do you know the page you are on.

There are two (2) paths. The Real path that Drupal uses


Which can be found this function.


And the Aliased path that you are actually using. PathAuto will do this for you or you might manually set a path.


Which can be found this function.


This last value can also be obtained with


Leave a comment

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