use complete path in js
Adjust the route name and url