django-cms / djangocms-versioning

General purpose versioning package for Django CMS 4 and above.
Other
34 stars 30 forks source link

fix: Compare versions' back button sometimes returns to invalid URL #413

Closed fsbraun closed 5 months ago

fsbraun commented 6 months ago

Description

"Compare versions" offers a back button. This typically returns to the edit or preview endpoint.

When editing a plugin and immediately afterwards clicking "Compare versions..." left the back button returning to an internal URL which only updates the toolbar.

This PR ensures that the correct toolbar request path is kept for the back button.

Related resources

Checklist