Closed (fixed)
Project:
Field Redirection
Version:
7.x-2.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Nov 2011 at 13:11 UTC
Updated:
15 Jul 2012 at 12:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
karlsheaI think this should fix it, can someone else check this out?
Comment #2
damienmckennaLooks good, thanks!
Comment #3
damienmckennaBTW I changed it to use drupal_http_build_query.
Comment #4
damienmckennaThis has been committed and included in the new v7.x-2.3 release.
Comment #6
codewatson commentedThis is not quite right, if you are using drupal_goto(), you cannot pass a query string or fragment (anchor) directly in the path, drupal_goto will try to encode ?, =, and # which will break urls with them in it. You have to pass those elements as an array as the second parameter, right now you are passing an empty array. I've also updated the link_field case to try to match an internal system path to its alias if it is one. See below:
Correct the message display, pass $options as the second parameter to url():
Pass $options as the second parameter in drupal_goto():
Probably not the most elegant solution to this, especially when it comes to determining if a path is an internal system path with an alias, but it gets the job done in my limited testing.
Comment #7
damienmckenna@dwatson: Thanks for identifying that fragments were also being truncated (I'd have preferred a new issue but it's not a big deal). I'm going to go with what I've attached.
Comment #9
damienmckennaCommitted.