mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2026-06-23 04:10:17 +00:00
chore: change history to explore page
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
committed by
Erik Michelson
parent
4db2f354de
commit
22288891f7
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user