Skip to content
Snippets Groups Projects
Commit 21fb7a1f authored by Jitendra Prajapati's avatar Jitendra Prajapati
Browse files

[FIX] website_slides: fix the title of the page in fullscreen mode


before this commit, the title of the page is not correct in fullscreen mode

after this commit, set the lesson name as the page title in the fullscreen mode
and changed the title of the page as per click on lesson name

task-2040899

closes odoo/odoo#35161

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 9885ccfd
No related branches found
No related tags found
No related merge requests found
......@@ -600,6 +600,8 @@ odoo.define('website_slides.fullscreen', function (require) {
var slide = this.get('slide');
self._pushUrlState();
return this._fetchSlideContent().then(function() { // render content
var websiteName = document.title.split(" | ")[1]; // get the website name from title
document.title = (websiteName) ? slide.name + ' | ' + websiteName : slide.name;
return self._renderSlide();
}).then(function() {
if (slide._autoSetDone && !session.is_website_user) { // no useless RPC call
......
......@@ -7,6 +7,7 @@
<link rel="canonical" t-att-href="slide.website_url" />
</t>
<t t-call="website.layout">
<t t-set="main_object" t-value="slide"/>
<div class="o_wslides_fs_main d-flex flex-column font-weight-light"
t-att-data-channel-id="slide.channel_id.id"
t-att-data-channel-enroll="slide.channel_id.enroll"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment