Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm rewriting a field as a link to /foo/[nid]?gids_group[]=[gid]
The square brackets were being encoded and not working properly, so I took the advice from the interface text "If you would like to have the characters %5B and %5D please use the html entity codes \'%5B\' or \'%5D\'". This advice did not work, as these characters ended up encoded as %255B and %255D. However, using [ and ]
did the trick. This is different than what was reported for D6 in #567918: Rewrite field using with non-tokens in square brackets.
Comments
Comment #1
tim.plunkettThe help text was changed in #1444274: Replacement Patterns Help Text, but perhaps it's still wrong?
Comment #2
dawehnerUpdate status, i guess that the linked issue from tim.plunkett fixes the issue already.
Comment #3
esmerel CreditAttribution: esmerel commentedComment #4
NWOM CreditAttribution: NWOM commentedThere is a patch that fixes this here: #2510838: Need to convert %5B and %5D to literal [ and ] after rewrite operation