Closed 2peter3 closed 1 year ago
Hey, is it possible to change the url location on click?
Thanks
Sure you can do that without using this plugin:
<a x-data="{ url: '/the/original/link' }" x-ajax="content" :href="url" @click="url = '/a/different/link'">Link</a> <div id="content"></div>
Hey, is it possible to change the url location on click?
Thanks