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.
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
Comment #1
RobertNelsonVance commentedI 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]=8Then 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/8and redirect it tohttp://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.
Comment #2
jbrauer commentedThe 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.
Comment #3
jbrauer commentedThere 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.