Closed saziosu closed 9 months ago
Resolved this by updating base.html to use {% url 'home' %}#books
as the href instead of just #books
Edit: adding resource used: https://stackoverflow.com/questions/25940811/how-to-add-anchor-to-django-url-in-template
Describe the bug Using an anchor link to move to the current books section on the homepage. If moving there from another page, like
add-book
, this tacks the anchor#books
to the end of it. For example,add-book/#books
To Reproduce Steps to reproduce the behavior:
add-book
Current books
in the navbarExpected behavior This should redirect to the homepage #books section