Skip to content

Use 'url' template filter in docs #6805

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 15, 2019
Merged

Conversation

rpkilby
Copy link
Member

@rpkilby rpkilby commented Jul 15, 2019

Maybe fixes #6803

@tomchristie tomchristie merged commit 0cb6b63 into encode:master Jul 15, 2019
@rpkilby rpkilby deleted the fix-docs-links branch July 15, 2019 19:29
</li>

{% for toc_item in toc_item.children %}
<li>
<a href="{{ toc_item.url }}">{{ toc_item.title }}</a>
<a href="{{ toc_item.url|url }}">{{ toc_item.title }}</a>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turns out we only wanted this on the main nav

Copy link
Member Author

@rpkilby rpkilby Jul 16, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it wouldn't ever be useful, since the toc items are just fragments, right? A toc item would never navigate to another URL. Agh, I swear I checked the side nav to see if this change affected them. 🤦‍♂

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No sweat! 😄

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm. TOC seemed to have work locally? ¯\_(ツ)_/¯

pchiquet pushed a commit to pchiquet/django-rest-framework that referenced this pull request Nov 17, 2020
sigvef pushed a commit to sigvef/django-rest-framework that referenced this pull request Dec 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Links in docs navbar are broken
2 participants