Brackets in URL Field Get Reformatted to %5B%5D I have a Drupal 7 site with a content type that includes a link field.  The intention is for staff to add a link that can link to an outside website. But if that link contains brackets [ ], the module uses %5B %5D instead. It also, cuts out parts of the URL.  

So, ....

...Search/Results?lookfor=&amp;basicType=Keyword&amp;type=Keyword&amp;filter[]=local_time_since_added

would translate to 

...Search/Results?type=Keyword&amp;filter%5B%5D=local_time_since_added

Would anyone be able to advise me as to why the link field in a content type would not only remove parts of my URL but also replace brackets?

I see a lot of chatter about this with views, but not on a link field in a content type.
Though I have not come up with an answer to my question, the easy work-around I created was to add a text field instead of a URL field in my content type.  

I then used the Linked Field Module to link the text field to the outside website.  This preserved all of the crazy characters that were needed.

For those not familiar with the Linked Field Module, after you have added a text field to your content type, go into:


Manage Display for your content type
Set the Format to Default
Click on the Gear Symbol
Say No to link to content
Check the box to Link the field
For Destination use the field item name with dashes, like this [node:field-online-link-to-resource]
Use the Advanced section to add a title, link text, etc.


FYI that I would only allow trusted content editors to add data to this type of field.