You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok so that might be because I used ../ rather then ./ or admin/ or just /
However in all these cases the link will be ok in the main page but not ok when navigating to a sub route. you will likely get something like this.
./ will get http://localhost:3000/admin/manageCoupons/manageCoupons
So no combination will fix the link issue. Any thought?
As explained when using ../manageCoupons will work from the sub route but it will brake when navigating to the manageCoupons view.
The text was updated successfully, but these errors were encountered:
You just need a starting slash. If you start with a slash, the browser will look for that page relative to the root of the website (referred to as an absolute URL). If you don't, the browser will assume the path is relative to the document (referred to as a relative URL).
I think this is what you are trying to accomplish:
ul.nav.nav-sidebar
li
a(href='/admin/manageCoupons') Coupons
li
a(href='/admin/manageCategories') Categories
li
a(href='/admin/manageStores') Stores
Ok so far I have every single possibility. Here is the issue.
views/admin/layout.jade
views/admin/coupons.jade
views/admin/add_coupons.jade
In the layout i have a admin menu list
If I navigate to http://localhost:3000/admin/manageCoupons/addCoupon and try to press on the menu item the link will be http://localhost:3000/admin/manageCoupons
However if I go to http://localhost:3000/admin/manageCoupons the link will be http://localhost:3000/manageCoupons
Ok so that might be because I used ../ rather then ./ or admin/ or just /
However in all these cases the link will be ok in the main page but not ok when navigating to a sub route. you will likely get something like this.
So no combination will fix the link issue. Any thought?
As explained when using ../manageCoupons will work from the sub route but it will brake when navigating to the manageCoupons view.
The text was updated successfully, but these errors were encountered: