[FIX] website: add the search params intro the editedObjectPath
In some place the search params are mandatory in the route. We now add the search and hash params to the editedObjectPath to avoid having an error when trying to go back. task-2993826 closes odoo/odoo#101996 X-original-commit: 2bed20392084bcbec2683939e5659b03e3ea7acf Signed-off-by: Romain Derie (rde) <rde@odoo.com>
This commit is contained in:
@@ -23,7 +23,8 @@ export class EditInBackendSystray extends Component {
|
||||
|
||||
editInBackend() {
|
||||
const { metadata: { mainObject } } = this.websiteService.currentWebsite;
|
||||
this.websiteService.editedObjectPath = this.websiteService.contentWindow.location.pathname;
|
||||
const location = this.websiteService.contentWindow.location;
|
||||
this.websiteService.editedObjectPath = location.pathname + location.search + location.hash;
|
||||
this.actionService.doAction({
|
||||
res_model: mainObject.model,
|
||||
res_id: mainObject.id,
|
||||
|
||||
Reference in New Issue
Block a user