I've included Product and services in Navbar links, If I click on Product link it should redirect to services page. I'm Using Django-Oscar. So I don't want to mess around with the urls.py and view.py.
Asked
Active
Viewed 83 times
1 Answers
0
If you don't want to mess with urls and views rather just use javascript. So just add something similar to this on the navlink/navitem.
onclick="window.location.href = '{% url 'yoururl' %}';"

Reez0
- 2,512
- 2
- 17
- 39
-
I need to go to 'localhost:8000/catalogue' when I click on 'localhost:8000' only with the help of urls.py – david johnson May 30 '19 at 19:33