Redirects the page to a desired url on click

PHOTO EMBED

Tue Nov 17 2020 11:04:47 GMT+0000 (Coordinated Universal Time)

Saved by @eneki

<script>
    clearFilters = (id) => {
        let
            href = '/customers/' + id,
            url = new URL(window.location.origin),
            newUrl = url.origin + href;

        window.location = newUrl
    }
</script>
content_copyCOPY