Storing a URL from a basic page using a custom module I created a basic page at http://example.com/[company]/[customer]?id=2. I want to store this URL in a global variable for string manipulations within a custom module.

I succeeded to retrieve the URL by using hook_form_alter() with respect to a webform but I don't know how to do the same thing for a basic page. 

Which hook do I need to use?
In your custom module, try to implement the hook_preprocess_page

function my_module_preprocess_page($vars) {
  print_r(current_path());exit;
}


This will retrieve the current URL of the site.