Hi-

I propose that the module automatically handle replacing the brackets with another "valid" url character.

The url works fine when copy/pasted.... but for more, let's say, inept users it is broken when they click on it.

Thanks.

Comments

RobertNelsonVance’s picture

I temporarily solved this issue by using mod rewrite in my .htaccess

Example.... If your prepopulate url should look like this:
http://www.example.com/node/add/transaction?edit[field_user][uids]=8

Then in your .htaccess file you could include:
RewriteRule ^transaction/uid/(.*) http://www.example.com/node/add/transaction?edit[field_user][uids]=$1 [R=301,L]

This would take the url http://example.com/transaction/uid/8 and redirect it to http://www.example.com/node/add/transaction?edit[field_user][uids]=8 - awesome!

An important part to mention is that Drupal deals with the rewrite a little differently than usual (as noted in: http://drupal.org/node/39862), but all you need to know is to include the "L" in the [R=301,L]

Still would like a more appropriate solution though.

jbrauer’s picture

Version: 5.x-1.3 »
Component: Miscellaneous » Code

The mail clients I've tested recently have been fine with [] in the URL. With that said it would be nice if we could eliminate characters that break in edge cases. Perhaps including something in the module to handle a add/p/formid/field/arg/field/arg would be worth experimenting with.

jbrauer’s picture

Version: » 5.x-1.x-dev
Category: bug » feature
Status: Active » Closed (won't fix)

There hasn't been much interest in this in the past 3 years so I'm going to close it at this point as I don't see an easy way to do this outside of additional .htaccess rules and it can always be re-opened if there is interest later.