Href for a route in JavaScript

Posted 9 months ago by LuisFelipe
function redirecionar(item) { location.href = 'http://dev.dsdsoftware/recebimento/dashboard'; }

Route name: recebimento.dashboard

How do I put the route instead of the link in the JavaScript href?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.