Commit 1ed7bd4b authored by Nathan Haug's avatar Nathan Haug
Browse files

#328607. Plain formatter omits query strings and named anchors when printing URLs.

parent 6e646315
......@@ -547,7 +547,7 @@ function theme_link_formatter_default($element) {
* Theme function for 'plain' text field formatter.
*/
function theme_link_formatter_plain($element) {
return empty($element['#item']['url']) ? check_plain($element['#item']['title']) : check_plain($element['#item']['url']);
return empty($element['#item']['url']) ? check_plain($element['#item']['title']) : url($element['#item']['url'], $element['#item']);
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment