简体   繁体   中英

Routing issues in my AngularJs application

I have given the route as '/second' to navigate into my second.html page, but when I'm clicking on the button, it's not navigating into the other page. I'm having this issue because of the URL, I think.

I want the URL to be http://127.0.0.1:5500/index.html#/second when I click on the button, but it's displaying the URL something like this: http://127.0.0.1:5500/index.html#!/#%2Fsecond . What could be the cause of the URL becoming something like this?

Try removing the / and make it only second . update the question with your router code for further assit.

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