a0b3499d348d252c3abd48154e1fd8dd545c7504
Before this commit, following this flow on enterprise: - Go to the webclient, on the homepage: '/web' - Click on the website - Click on the "contact us" menu - Click on the browser's back button => The back navigation happens in the iframe, it's normal - Click on the back button again => The url has changed for the webclient "homepage" one but the WebsitePreview is still displayed. This happens because the router service listens to the hashchange events to communicate the webclient which component to display. But with [1] it was decided to replace the regular webclient's router url from the WebsitePreview client action with the frontend's url. As a result, the 'hashchange' is never fired when navigating back from the client action to another webclient route. To fix that, the 'popstate' event is listened at the client action level. If the new url is a regular webclient's router one, an 'hashchange' event is triggered to continue the flow as if the browser's url was never changed. The same hook is used to revert back the original webclient route /web#action=website.website_preview... when leaving it, so that the router can replay it correctly when navigating back from another route. [1]: https://github.com/odoo/odoo/commit/31cc10b91dc7762e23b4bde9b945be0c4ce3fe3b task-2687506 Part-of: odoo/odoo#97408
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%