summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorrde <rde@odoo.com>2017-09-30 11:05:57 +0200
committerJeremy Kersten <jke@odoo.com>2017-09-30 16:11:48 +0200
commit727d461e1d2bcec4571665b90b6d1630f671a0a3 (patch)
treef702e065904f3e64249d0b81e37c6291db094a4c /addons/web/static/src/js/views/basic/basic_controller.js
parentf2df388c38d89250d1ad51225628c726dacdd151 (diff)
[IMP] website: create special extension page redirect backend + own template
Before this commit: 1. You could create a page with supported extension in the path (eg: myfile.js) You would then be redirected to the webeditor (myfile.js?enable_editor..) But in this case, it would just redirect you to a plain text page without odoo layout because supported extension are rendered with a specific mimetype. (is it is a .js page, it will just render the page content as a js file) 2. These kind of page would still call t-layout that you should be removed in backend in order to make it work Now: 1. You will be automatically redirected to the back end to edit your file instead of landing on a text-only page. 2. Supported extension now have their own template (eg: .js file now have <script text=..> tag added automatically in their content)
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions