Closed (duplicate)
Project:
Drupal core
Version:
8.0.0-beta14
Component:
views.module
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Aug 2015 at 19:31 UTC
Updated:
12 Sep 2015 at 16:20 UTC
Jump to comment: Most recent
Comments
Comment #2
hampercm commentedComment #3
hampercm commentedOne of the problems listed above is reported in #2488540: Rewrite external links in views fields
Comment #4
webchickBroken sounds at least major.
Comment #5
webchickAlso, tagging for the Views team.
Comment #6
lendudeWould like to close this as a duplicate of #2488540: Rewrite external links in views fields, since that has a patch that solves the issues here, except one.
{{ field_news_link-uri }} is not in my valid replacements list when I use a link field, am I missing a step to make that a valid replacement? Or has it been removed?
I get a notice when I use that token:
Notice: Object of class Drupal\Core\Render\SafeString could not be converted to int
Haven't looked into Views handling of invalid tokens but that seems like a different issue to me.
Comment #7
tannerjfco commentedPerhaps it is dependent on which options you have set for the field? In this case I the "URL only" option checked on the field in the view. These are the replacement options for the link field that I see:
{{ field_link }} == News Link
{{ field_link__uri }} == Raw uri
{{ field_link__title }} == Raw title
{{ field_link__options }} == Raw options
Comment #8
lendude@tannerjfco ah thanks! It's one of the tokens that is only available when you rewrite the actual link field. I was rewriting a different field to use the link field.
Manually tested it, and the patch in #2488540: Rewrite external links in views fields should fix that too.
Comment #9
lendudeLooking at the specific link tokens lead to #2567339: PHP Warning when using link field tokens in a view.
Closing this one as duplicate of #2488540: Rewrite external links in views fields, if you feel specific cases need to be tested, please add them there.