Skip to content

Commit

Permalink
fix: Compare versions' back button sometimes returns to invalid URL (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun authored May 30, 2024
1 parent 1c8b14b commit f31b5e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djangocms_versioning/cms_toolbars.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def _add_versioning_menu(self):

url += "?" + urlencode({
"compare_to": version.pk,
"back": self.request.get_full_path(),
"back": self.toolbar.request_path,
})
versioning_menu.add_link_item(name, url=url)
# Discard changes menu entry (wrt to source)
Expand Down

0 comments on commit f31b5e0

Please sign in to comment.