twhoffma / geeklistanalyser

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Handlebars helper to allow drill-through #68

Closed twhoffma closed 4 years ago

twhoffma commented 4 years ago

In frontend, clicking on a new attribute, should add that to the query for multiple level search.

If the attribute already exists, replace.

For the current URL:

Handlebars.registerHelper('drillthrough', function(attr, val) { //pseudo: If regexp matched attr=^&, replace with new ${attr}=${val} + \1 return '' + document.location; });