1
0
Fork 0
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:
Bill Thornton 2025-03-17 15:39:21 -04:00
parent ccc9f52aec
commit d6353f27b8
44 changed files with 178 additions and 178 deletions

View file

@ -2,14 +2,14 @@ import { AsyncRoute } from 'components/router/AsyncRoute';
import { AppType } from 'constants/appType';
export const ASYNC_USER_ROUTES: AsyncRoute[] = [
{ path: 'home.html', page: 'home', type: AppType.Experimental },
{ path: 'home', page: 'home', type: AppType.Experimental },
{ path: 'quickconnect', page: 'quickConnect' },
{ path: 'search.html', page: 'search' },
{ path: 'userprofile.html', page: 'user/userprofile' },
{ path: 'movies.html', page: 'movies', type: AppType.Experimental },
{ path: 'tv.html', page: 'shows', type: AppType.Experimental },
{ path: 'music.html', page: 'music', type: AppType.Experimental },
{ path: 'livetv.html', page: 'livetv', type: AppType.Experimental },
{ path: 'mypreferencesdisplay.html', page: 'user/display', type: AppType.Experimental },
{ path: 'homevideos.html', page: 'homevideos', type: AppType.Experimental }
{ path: 'search', page: 'search' },
{ path: 'userprofile', page: 'user/userprofile' },
{ path: 'movies', page: 'movies', type: AppType.Experimental },
{ path: 'tv', page: 'shows', type: AppType.Experimental },
{ path: 'music', page: 'music', type: AppType.Experimental },
{ path: 'livetv', page: 'livetv', type: AppType.Experimental },
{ path: 'mypreferencesdisplay', page: 'user/display', type: AppType.Experimental },
{ path: 'homevideos', page: 'homevideos', type: AppType.Experimental }
];

View file

@ -2,77 +2,77 @@ import { LegacyRoute } from '../../../../components/router/LegacyRoute';
export const LEGACY_PUBLIC_ROUTES: LegacyRoute[] = [
{
path: 'addserver.html',
path: 'addserver',
pageProps: {
controller: 'session/addServer/index',
view: 'session/addServer/index.html'
}
},
{
path: 'selectserver.html',
path: 'selectserver',
pageProps: {
controller: 'session/selectServer/index',
view: 'session/selectServer/index.html'
}
},
{
path: 'login.html',
path: 'login',
pageProps: {
controller: 'session/login/index',
view: 'session/login/index.html'
}
},
{
path: 'forgotpassword.html',
path: 'forgotpassword',
pageProps: {
controller: 'session/forgotPassword/index',
view: 'session/forgotPassword/index.html'
}
},
{
path: 'forgotpasswordpin.html',
path: 'forgotpasswordpin',
pageProps: {
controller: 'session/resetPassword/index',
view: 'session/resetPassword/index.html'
}
},
{
path: 'wizardremoteaccess.html',
path: 'wizardremoteaccess',
pageProps: {
controller: 'wizard/remote/index',
view: 'wizard/remote/index.html'
}
},
{
path: 'wizardfinish.html',
path: 'wizardfinish',
pageProps: {
controller: 'wizard/finish/index',
view: 'wizard/finish/index.html'
}
},
{
path: 'wizardlibrary.html',
path: 'wizardlibrary',
pageProps: {
controller: 'wizard/library',
view: 'wizard/library.html'
}
},
{
path: 'wizardsettings.html',
path: 'wizardsettings',
pageProps: {
controller: 'wizard/settings/index',
view: 'wizard/settings/index.html'
}
},
{
path: 'wizardstart.html',
path: 'wizardstart',
pageProps: {
controller: 'wizard/start/index',
view: 'wizard/start/index.html'
}
},
{
path: 'wizarduser.html',
path: 'wizarduser',
pageProps: {
controller: 'wizard/user/index',
view: 'wizard/user/index.html'

View file

@ -8,7 +8,7 @@ export const LEGACY_USER_ROUTES: LegacyRoute[] = [
view: 'itemDetails/index.html'
}
}, {
path: 'list.html',
path: 'list',
pageProps: {
controller: 'list',
view: 'list.html'
@ -20,31 +20,31 @@ export const LEGACY_USER_ROUTES: LegacyRoute[] = [
view: 'lyrics.html'
}
}, {
path: 'mypreferencesmenu.html',
path: 'mypreferencesmenu',
pageProps: {
controller: 'user/menu/index',
view: 'user/menu/index.html'
}
}, {
path: 'mypreferencescontrols.html',
path: 'mypreferencescontrols',
pageProps: {
controller: 'user/controls/index',
view: 'user/controls/index.html'
}
}, {
path: 'mypreferenceshome.html',
path: 'mypreferenceshome',
pageProps: {
controller: 'user/home/index',
view: 'user/home/index.html'
}
}, {
path: 'mypreferencesplayback.html',
path: 'mypreferencesplayback',
pageProps: {
controller: 'user/playback/index',
view: 'user/playback/index.html'
}
}, {
path: 'mypreferencessubtitles.html',
path: 'mypreferencessubtitles',
pageProps: {
controller: 'user/subtitles/index',
view: 'user/subtitles/index.html'

View file

@ -16,7 +16,7 @@ export const EXPERIMENTAL_APP_ROUTES: RouteObject[] = [
path: '/*',
lazy: () => import('../AppLayout'),
children: [
{ index: true, element: <Navigate replace to='/home.html' /> },
{ index: true, element: <Navigate replace to='/home' /> },
{
/* User routes */