Hi Ewan,
I seem to recall spending quite a bit of time getting my head around this. I ended up firing an event from the anchor:
<a href="#" v-on:click="popup_page($event, ent.id)">
(ent.id was a loop I had - so basically you just need the context record id, if it’s relevant to you) I then had a function in my frontend.js to pop the page up:
popup_page:function(e, id) {
if (this.linkTo == null) return;
var url = this.linkTo + "?context_record_id=" +id;
console.log ("url is " + url);
e.preventDefault();
new mats.system_modal_popup(url, {
cancel_text: "Close"
});
return false;
}
The linkTo is:
'/popup/' + widget.get_setting('link_to').substr(3).replace(/^0+/, '');
where link_to is a reference to the popup page grabbed from the following in get_settings:
link_to:{
main_label:'Link To Popup page',
base_format:"choice",
choices:cs.build_choices('page', {type:['popup']}),
},
I don’t recall what was for which issue, but it sounds like you may be missing the e.preventDefault() or return false.