In D8, I am struggling to build a link in Views. I keep running into either a missing option or checkboxes ignored.
I have three fields pulled into views:
- Content: Title [hidden] .... token is {{ title }}
- Content: Resource Type [hidden] .... token is {{ field_resource_type }} Pulls values from Taxonomy
- Content: Link to Content .... token is {{ view_node }}
I want to rewrite the Content: Link to pass variables. So I'm outputting the URL as text
I essentially want: "{{ view_node }}?title={{ title }}&type={{ field_resource_type }}
I also want to replace the spaces with dashes, so my end result is: /resource/article-one-url?title=article-one-title&type=white-paper
But... if I override the output, and make my own URL, the system ignores if I check the box to Replace spaces with dashes
I do this by first checking "Output this field as a custom link," so that I can see and check the "Replace spaces with dashes" option.
I would try to rewrite the URL in the "Output this field as a custom link" section, but the field I thought was supposed to be there, is not.
UPDATE: I also tried this with a custom text field. Within the field settings I checked "Output this field as a custom link" and put the same tokens in, but this does the same thing. Spaces exist in the url.