text splitted into chunks,
[redakcja.git] / apps / wiki / templates / wiki / tabs / history_view.html
index 7d61f99..60c59a9 100644 (file)
@@ -9,7 +9,7 @@
                        data-enabled-when="1" disabled="disabled">{% trans "Revert document" %}</button>
                <button id="open-preview-button" disabled="disabled"
                        data-enabled-when="1"
-                       data-basehref="{% url wiki_editor_readonly book.slug %}">{% trans "View version" %}</button>
+                       data-basehref="{% url wiki_editor_readonly chunk.book.slug chunk.slug %}">{% trans "View version" %}</button>
 
        </div>
     <div id="history-view">