简体   繁体   中英

Cordova nodejs routing issue

I am new to cordova.

I am trying to build cordova app with nodejs as a backend. When I run the app using browser (cordova run browser) it is redirecting me to http://localhost:8000/index.html which is fine.

My issue is, when I logged in to the website the browser redirects to " http://localhost:8000/home " and gives not found error. I have set the routing from routes.js to "/home" (nodejs backend).

Any help will be appreciated. Thank you.

你有什么东西可以路由视图吗

router.addRoute('name of view',function(){'your code here'})

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM