Skip to content
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

Update documentation on Verto 'relative-link' behaviour #504

Closed
JackMorganNZ opened this issue Jun 25, 2017 · 0 comments
Closed

Update documentation on Verto 'relative-link' behaviour #504

JackMorganNZ opened this issue Jun 25, 2017 · 0 comments

Comments

@JackMorganNZ
Copy link
Member

@JackMorganNZ JackMorganNZ commented Jun 25, 2017

I've configured the relative-link Verto tag to use the following HTML template:

{% autoescape false %}<a href="{{ '{% url' }} {{ link_path }} {{ '%}' }}">{{ text }}</a>{% endautoescape %}

So with the following Markdown:

You need to find the factors of the number (see [challenge 4.1]('topics:programming_challenge' 'unplugged-programming' 'check-if-divisor')).

The following HTML is created:

You need to find the factors of the number (see <a href="/en-gb/topics/unplugged-programming/programming/check-if-divisor">challenge 4.1</a>).

This is really useful as the URLs are less likely to break, however we need to explain the basics of the Django URL command to authors.

@JackMorganNZ JackMorganNZ added this to the 2.0.0 milestone Jun 25, 2017
JackMorganNZ added a commit that referenced this issue Jun 25, 2017
Also updates the 'relative-link' HTML template,
see issue #504.
JackMorganNZ added a commit that referenced this issue Feb 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

1 participant