I have a little code block on a custom view/code page which links to the dataset. See below:
<div class="advanced-kpi--bottom">
<div class="advanced-kpi--bottom-second-stage">
<a class="source"
href="/explore/dataset/{{ ctx.dataset.datasetid }}/table/" target="_blank" rel="noopener norefer">
View Source <i class="fa fa-long-arrow-right" aria-hidden="true"></i>
</a>
</div>
</div>
I would like the href to be dynamic to either use the refine in the dataset context parameters or based on some on page filters. See this page for the filters in question:Â https://cityobservatory.birmingham.gov.uk/explore/dataset/percentage-households-in-fuel-poverty-wmca-wards/insight/
Is this possible? The URL sync is on if that helps. Or do I need to hard code the refine.arealabel into the URL path?