0 points

Redirects the page to a desired url on click


dashboard

Tue Nov 17 2020 11:04:47 GMT+0000 (UTC)

Posted by @eneki

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

        window.location = newUrl
    }
</script>
content_copy Copy