I have a div with a certain id
<div id="services">
Then I try to link to it using Django templates
<a href="{% url 'homepage' %}#services">
But it only works if I'm in the same page (App) Is there a way to work around this ?
Then I try to link to it using Django templates But it onl" />
Then I try to link to it using Django templates But it onl" />
Then I try to link to it using Django templates But it onl"/>
I have a div with a certain id Then I try to link to it using Django templates But it only works if I'm in the same page (App)
Is there a way to work around this ? Copyright © 2021 Jogjafile Inc.
Link to a specific div in another app(page) in Django using anchor tag
1.5k Views
Asked by
Zeyad Obaia
At
<div id="services">
<a href="{% url 'homepage' %}#services">
There are 1 best solutions below
Related Questions in DJANGO
Related Questions in DJANGO-TEMPLATES
Related Questions in DJANGO-URLS
Related Questions in DJANGO-1.10
Trending Questions
Popular Questions
I found out what the problem was. I had a script that does smooth scrolling and it had "event.preventDefault();" in it. as I removed that it worked.