I was trying to find if there is a way to avoid writing custom rewrite for links to open in modal popups from a view.
Here is what I am rewriting a custom field for doing this now.
<a href="url/{{ field_value }}" target="_blank" class="use-ajax" data-dialog-type="modal" data-dialog-options='{"width":"60%", "title":"Popup title"}'>View</a>
Looks like this should be like a helper module or something like that. Wanted to know if something already exists for this.