Fix homesection programs button to go to correct page

This commit is contained in:
dinki 2019-07-02 14:17:36 -05:00
parent b592abbeff
commit 5f80642193
2 changed files with 6 additions and 1 deletions

View File

@ -684,7 +684,8 @@ define(['connectionManager', 'cardBuilder', 'appSettings', 'dom', 'apphost', 'la
}
html += '<a style="margin-left:.8em;margin-right:0;" is="emby-linkbutton" href="' + appRouter.getRouteUrl('livetv', {
serverId: apiClient.serverId()
serverId: apiClient.serverId(),
section: 'programs'
}) + '" class="raised"><span>' + globalize.translate('Programs') + '</span></a>';
html += '<a style="margin-left:.5em;margin-right:0;" is="emby-linkbutton" href="' + appRouter.getRouteUrl('livetv', {

View File

@ -1012,6 +1012,10 @@ var AppInfo = {};
}
if ("livetv" === item) {
if ("programs" === options.section) {
return "livetv.html?tab=0&serverId=" + options.serverId;
}
if ("guide" === options.section) {
return "livetv.html?tab=1&serverId=" + options.serverId;
}