Within Views I'm trying to rewrite a token into a link "Make the output of this field a link"

Link: google.com/maps/dir//[field_dr_address]

The token is for the entire address field.

It works except this is the generated URL:

http://google.com/maps/dir//%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%204713%20croftshire%20dr%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20kettering,%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20oh%20%20%20%20%20%20%20%20%20%20%20%20%20%2045440

Besides looking crazy fouled up it works. My users may copy the link location so I can't keep it like this.

Stripping white spaces before and after doesn't work. I think because these white spaces aren't before and after. Also, stripping html doesn't work because its white spaces first before %20 is used...I think.

Anyone have any idea what may be causing this?

Comments

System Lord’s picture

Issue summary: View changes
System Lord’s picture

I just realized I need to explain this better.

My view is of content. I'm using EVA to grab the node author's Location from their profile. So, when I say "token" I'm referring to this field.