Good afternoon, I am hoping you all can help me here.

I have address information coming from the address_field module and I am dumping the tokens into an e-mail using rules. Now what I am trying to do is create a google maps url, to assist with getting to the location, However I am running into a problem. I cant seem to insert the necessary characters into the url to make the link work properly. Please see below:
The top link will not work correctly. The bottom is my static text that I am working off of. I need to insert the static text in between the first part of the address but that is how it comes from the address field via tokens. Can I create a rule to build the entire URL and create the necesary extra characters? Please be gentle not much of a coder.

Thanks
https://maps.google.com/?q=15 cross st%20Hillsdale%20NJ%2007642

https://maps.google.com/?q=100%20central%20ave%20Hillsdale,%20NJ%2007642

Comments

TR’s picture

Issue summary: View changes
Status: Active » Fixed

You could always use something like https://www.drupal.org/project/token_modifier to url-encode your token. Or create your own token for the map URL using hook_token() and hook_token_info().

TR’s picture

Status: Fixed » Closed (fixed)