diff --git a/src/components/subtitleeditor/subtitleeditor.js b/src/components/subtitleeditor/subtitleeditor.js index 8697a9a747..8e6fb497d9 100644 --- a/src/components/subtitleeditor/subtitleeditor.js +++ b/src/components/subtitleeditor/subtitleeditor.js @@ -1,3 +1,4 @@ +import appHost from 'apphost'; import dialogHelper from 'dialogHelper'; import layoutManager from 'layoutManager'; import globalize from 'globalize'; @@ -388,6 +389,11 @@ function showEditorInternal(itemId, serverId, template) { btnSubmit.classList.add('hide'); } + // Don't allow redirection to other websites from the TV layout + if (layoutManager.tv || !appHost.supports('externallinks')) { + dlg.querySelector('.btnHelp').remove(); + } + const editorContent = dlg.querySelector('.formDialogContent'); dlg.querySelector('.subtitleList').addEventListener('click', onSubtitleListClick); diff --git a/src/controllers/itemDetails/index.js b/src/controllers/itemDetails/index.js index c68fe15feb..ed83d859d1 100644 --- a/src/controllers/itemDetails/index.js +++ b/src/controllers/itemDetails/index.js @@ -649,7 +649,10 @@ function reloadFromItem(instance, page, params, item, user) { const itemBirthLocation = page.querySelector('#itemBirthLocation'); if (item.Type == 'Person' && item.ProductionLocations && item.ProductionLocations.length) { - const gmap = '' + item.ProductionLocations[0] + ''; + let gmap = item.ProductionLocations[0]; + if (!layoutManager.tv && appHost.supports('externallinks')) { + gmap = `${gmap}`; + } itemBirthLocation.classList.remove('hide'); itemBirthLocation.innerHTML = globalize.translate('BirthPlaceValue', gmap); } else { @@ -1066,7 +1069,7 @@ function renderDetails(page, item, apiClient, context, isStatic) { reloadUserDataButtons(page, item); // Don't allow redirection to other websites from the TV layout - if (!layoutManager.tv) { + if (!layoutManager.tv && appHost.supports('externallinks')) { renderLinks(page, item); }