mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Remove .html from routes
This commit is contained in:
parent
ccc9f52aec
commit
d6353f27b8
44 changed files with 178 additions and 178 deletions
|
@ -302,26 +302,26 @@ function loadItems(element, item, type, query, listOptions) {
|
|||
|
||||
function getMoreItemsHref(item, type) {
|
||||
if (item.Type === 'Genre') {
|
||||
return '#/list.html?type=' + type + '&genreId=' + item.Id + '&serverId=' + item.ServerId;
|
||||
return '#/list?type=' + type + '&genreId=' + item.Id + '&serverId=' + item.ServerId;
|
||||
}
|
||||
|
||||
if (item.Type === 'MusicGenre') {
|
||||
return '#/list.html?type=' + type + '&musicGenreId=' + item.Id + '&serverId=' + item.ServerId;
|
||||
return '#/list?type=' + type + '&musicGenreId=' + item.Id + '&serverId=' + item.ServerId;
|
||||
}
|
||||
|
||||
if (item.Type === 'Studio') {
|
||||
return '#/list.html?type=' + type + '&studioId=' + item.Id + '&serverId=' + item.ServerId;
|
||||
return '#/list?type=' + type + '&studioId=' + item.Id + '&serverId=' + item.ServerId;
|
||||
}
|
||||
|
||||
if (item.Type === 'MusicArtist') {
|
||||
return '#/list.html?type=' + type + '&artistId=' + item.Id + '&serverId=' + item.ServerId;
|
||||
return '#/list?type=' + type + '&artistId=' + item.Id + '&serverId=' + item.ServerId;
|
||||
}
|
||||
|
||||
if (item.Type === 'Person') {
|
||||
return '#/list.html?type=' + type + '&personId=' + item.Id + '&serverId=' + item.ServerId;
|
||||
return '#/list?type=' + type + '&personId=' + item.Id + '&serverId=' + item.ServerId;
|
||||
}
|
||||
|
||||
return '#/list.html?type=' + type + '&parentId=' + item.Id + '&serverId=' + item.ServerId;
|
||||
return '#/list?type=' + type + '&parentId=' + item.Id + '&serverId=' + item.ServerId;
|
||||
}
|
||||
|
||||
function addCurrentItemToQuery(query, item) {
|
||||
|
|
|
@ -214,11 +214,11 @@ function showSearch() {
|
|||
}
|
||||
|
||||
function onHeaderUserButtonClick() {
|
||||
Dashboard.navigate('mypreferencesmenu.html');
|
||||
Dashboard.navigate('mypreferencesmenu');
|
||||
}
|
||||
|
||||
function onHeaderHomeButtonClick() {
|
||||
Dashboard.navigate('home.html');
|
||||
Dashboard.navigate('home');
|
||||
}
|
||||
|
||||
function showAudioPlayer() {
|
||||
|
@ -321,7 +321,7 @@ function onMainDrawerSelect() {
|
|||
function refreshLibraryInfoInDrawer(user) {
|
||||
let html = '';
|
||||
html += '<div style="height:.5em;"></div>';
|
||||
html += `<a is="emby-linkbutton" class="navMenuOption lnkMediaFolder" href="#/home.html"><span class="material-icons navMenuOptionIcon home" aria-hidden="true"></span><span class="navMenuOptionText">${globalize.translate('Home')}</span></a>`;
|
||||
html += `<a is="emby-linkbutton" class="navMenuOption lnkMediaFolder" href="#/home"><span class="material-icons navMenuOptionIcon home" aria-hidden="true"></span><span class="navMenuOptionText">${globalize.translate('Home')}</span></a>`;
|
||||
|
||||
// placeholder for custom menu links
|
||||
html += '<div class="customMenuOptions"></div>';
|
||||
|
@ -406,7 +406,7 @@ function getUserViews(apiClient, userId) {
|
|||
guideView.Name = globalize.translate('Guide');
|
||||
guideView.ImageTags = {};
|
||||
guideView.icon = 'dvr';
|
||||
guideView.url = '#/livetv.html?tab=1';
|
||||
guideView.url = '#/livetv?tab=1';
|
||||
list.push(guideView);
|
||||
}
|
||||
}
|
||||
|
@ -503,7 +503,7 @@ function onSelectServerClick() {
|
|||
}
|
||||
|
||||
function onSettingsClick() {
|
||||
Dashboard.navigate('mypreferencesmenu.html');
|
||||
Dashboard.navigate('mypreferencesmenu');
|
||||
}
|
||||
|
||||
function onExitAppClick() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue