Fix/remove deprecated routes (#747)
* Route to "/" in case path is unknown * Remove deprecated routes "sources" and "extensions" were merged into "browse" but the routes were never removed, thus, the paths still matched and opened the components
This commit is contained in:
@@ -166,7 +166,7 @@ export const SearchAll: React.FC = () => {
|
||||
|
||||
const { setTitle, setAction } = useContext(NavBarContext);
|
||||
|
||||
useSetDefaultBackTo('sources');
|
||||
useSetDefaultBackTo('browse');
|
||||
|
||||
const { pathname, state } = useLocation<{ mangaTitle?: string }>();
|
||||
const isMigrateMode = pathname.startsWith('/migrate/source');
|
||||
|
||||
@@ -225,7 +225,7 @@ export function SourceMangas() {
|
||||
clearCache: boolean;
|
||||
}>().state ?? {};
|
||||
|
||||
useSetDefaultBackTo('sources');
|
||||
useSetDefaultBackTo('browse');
|
||||
|
||||
const [isFirstRender, setIsFirstRender] = useState(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user