Using drupal 7, I have a webform as a block. Set to show on a certain content type with a hidden field returning the token value %get[q] to let the admins know from which page the form was submitted from. Unfortunately it has intermittent errors that I've not been able to duplicate. Is there a better way to capture the url?
What about Drupal official way? https://api.drupal.org/api/drupal/includes!path.inc/function/current_path/7