chore: change history to explore page

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares
2026-04-29 23:10:33 +02:00
committed by Erik Michelson
parent 4db2f354de
commit 22288891f7
3 changed files with 3 additions and 3 deletions
@@ -8,7 +8,7 @@ import React from 'react'
import { Container } from 'react-bootstrap'
/**
* Renders the layout for both intro and history page.
* Renders the layout for both intro and explore page.
*
* @param children The children that should be rendered on the page.
*/
@@ -10,7 +10,7 @@ import { useGetPostLoginRedirectUrl } from './utils/use-get-post-login-redirect-
/**
* Redirects the browser to the relative URL that is provided via "redirectBackTo" URL parameter.
* If no parameter has been provided or if the URL is not relative, then "/history" will be used.
* If no parameter has been provided or if the URL is not relative, then "/explore/my" will be used.
*/
export const RedirectToParamOrExplore: React.FC = () => {
const redirectUrl = useGetPostLoginRedirectUrl()
@@ -9,7 +9,7 @@ const defaultFallback = '/explore/my'
/**
* Returns the URL that the user should be redirected to after logging in.
* If no parameter has been provided or if the URL is not relative, then "/history" will be used.
* If no parameter has been provided or if the URL is not relative, then "/explore/my" will be used.
*/
export const useGetPostLoginRedirectUrl = (): string => {
const redirectBackUrl = useSingleStringUrlParameter('redirectBackTo', defaultFallback)