This is likely a super easy question, in a view, I tie a ‘click’ event to a button, when that event is clicked I wish to redirect to a totally new page (e.g not a route).
e.g.
events : {
"click .button" : 'redirect'
},
redirect : {
window.location('otherlink');
}
I could use window.location, but seems thats the wrong way? any ideas appreciated?
I would simply use a simple
<a href="otherlink">Link Title</a>. If the link is dynamic I would rely on a View to render the link and manage his state andhref.If you need to do something before letting the user go the the secondary page use and event handler without the
event.preventDefault()or avoiding to returnfalse.