Skip to content

Commit 09d8404

Browse files
humitosagjohnson
andauthored
Link to redirect creation page when editing a version (#632)
This is implements the idea 4) from readthedocs/readthedocs.org#11978 as a first step. However, we can get fancier here and automate this creation somehow if we want. There are more ideas for UX in that issue. --------- Co-authored-by: Anthony <[email protected]>
1 parent 457cd45 commit 09d8404

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

readthedocsext/theme/templates/projects/version_form.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ <h2 class="ui medium dividing header">
5353
<div class="content">
5454
{% if version.active %}
5555
<div class="ui warning message">
56-
{% trans "Deactivating a version or changing its slug will result in the deletion of its documentation." %}
56+
{% url "projects_redirects_create" project_slug=project.slug as url_redirects %}
57+
{% blocktrans trimmed with url=url_redirects %}
58+
Deactivating a version or changing its slug will result in the deletion of its documentation.
59+
Make sure to <a href="{{ url }}" target="_blank">create a redirect</a> for these URLs to ensure old links continue working.
60+
{% endblocktrans %}
5761
</div>
5862
{% endif %}
5963

0 commit comments

Comments
 (0)