Skip to content

Commit fb79603

Browse files
skeptrunedevdensumesh
authored andcommitted
bugfix(demo-page): partnerSettings not being set for inline
1 parent d71125a commit fb79603

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

server/src/public/page.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,11 @@
458458

459459
if (params.inline && !params.searchPageProps?.display) {
460460
const inlineParams = {{ params | tojson }};
461+
inlineParams.partnerSettings = {
462+
"partnerCompanyName": "{{ partner_configuration.COMPANY_NAME }}",
463+
"partnerCompanyUrl": "{{ partner_configuration.COMPANY_URL | safe }}",
464+
"partnerCompanyFaviconUrl": "{{ partner_configuration.FAVICON_URL | safe }}",
465+
}
461466
const inlineRoot = document.querySelector("#inline-root");
462467
inlineParams.cssRelease = mode;
463468
inlineParams.groupTrackingId = params.singleProductOptions?.groupTrackingId;
@@ -566,8 +571,8 @@
566571
</div>
567572
{% if params.searchPageProps and params.searchPageProps.display %}
568573
<div id="inline-serp-root"></div>
569-
{% endif %}
570-
{% if params.videoLink and params.videoPosition == "static" %}
574+
{% endif %} {% if params.videoLink and params.videoPosition == "static"
575+
%}
571576
<div
572577
class="mx-auto py-4 px-8 sm:px-12 lg:max-w-7xl lg:px-20 w-full blurb-html"
573578
>
@@ -586,8 +591,7 @@
586591
></iframe>
587592
</div>
588593
</div>
589-
{% endif %}
590-
{% if params.singleProductOptions and
594+
{% endif %} {% if params.singleProductOptions and
591595
params.singleProductOptions.productName %} {% include "product.html" %}
592596
{% endif %} {% if tabs and tabs|length > 0 %} {% include "tabs.html" %}
593597
{% endif %} {% if params.videoLink and params.videoPosition ==

0 commit comments

Comments
 (0)