From f31b5e0fb89ccccb486df4014eec53d6322aec5b Mon Sep 17 00:00:00 2001 From: Fabian Braun Date: Thu, 30 May 2024 12:28:38 +0200 Subject: [PATCH] fix: Compare versions' back button sometimes returns to invalid URL (#413) --- djangocms_versioning/cms_toolbars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangocms_versioning/cms_toolbars.py b/djangocms_versioning/cms_toolbars.py index 73d18594..007cac53 100644 --- a/djangocms_versioning/cms_toolbars.py +++ b/djangocms_versioning/cms_toolbars.py @@ -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)