mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix ConnectionRequired missing for public routes
This commit is contained in:
parent
6f670d5c3e
commit
9c16515549
4 changed files with 46 additions and 32 deletions
|
@ -1,7 +1,6 @@
|
|||
import React, { useEffect, useMemo } from 'react';
|
||||
import React, { useMemo } from 'react';
|
||||
import { Navigate, useLocation } from 'react-router-dom';
|
||||
|
||||
import loading from 'components/loading/loading';
|
||||
import Page from 'components/Page';
|
||||
import globalize from 'lib/globalize';
|
||||
import LinkButton from 'elements/emby-button/LinkButton';
|
||||
|
@ -9,10 +8,6 @@ import LinkButton from 'elements/emby-button/LinkButton';
|
|||
const FallbackRoute = () => {
|
||||
const location = useLocation();
|
||||
|
||||
useEffect(() => {
|
||||
loading.hide();
|
||||
}, []);
|
||||
|
||||
// Check if the requested path should be redirected
|
||||
const to = useMemo(() => {
|
||||
const _to = {
|
||||
|
@ -42,14 +37,16 @@ const FallbackRoute = () => {
|
|||
id='fallbackPage'
|
||||
className='mainAnimatedPage libraryPage'
|
||||
>
|
||||
<h1>{globalize.translate('HeaderPageNotFound')}</h1>
|
||||
<p>{globalize.translate('PageNotFound')}</p>
|
||||
<LinkButton
|
||||
className='button-link'
|
||||
href='#/home.html'
|
||||
>
|
||||
{globalize.translate('GoHome')}
|
||||
</LinkButton>
|
||||
<div className='padded-left padded-right'>
|
||||
<h1>{globalize.translate('HeaderPageNotFound')}</h1>
|
||||
<p>{globalize.translate('PageNotFound')}</p>
|
||||
<LinkButton
|
||||
className='button-link'
|
||||
href='#/home.html'
|
||||
>
|
||||
{globalize.translate('GoHome')}
|
||||
</LinkButton>
|
||||
</div>
|
||||
</Page>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue