Implement route of landing page

This commit is contained in:
Wolfgang Huß 2021-07-19 15:44:59 +02:00
parent e77848abf9
commit 6632622b4e
3 changed files with 8 additions and 3 deletions

View File

@ -1,9 +1,11 @@
// this file is duplicated in `backend/src/config/links.js` and `webapp/constants/links.js` and replaced on rebranding
export default {
LANDING_PAGE: '/login', // examples: '/login', '/registration'
ORGANIZATION: 'https://ocelot.social',
SUPPORT: 'https://ocelot.social',
// on null or empty strings internal imprint is used, see 'webapp/locales/html/'
// on null or empty strings internal pages are used, see 'webapp/locales/html/'
// you can find and store templates at https://github.com/Ocelot-Social-Community/Ocelot-Social-Deploy-Rebranding/tree/master/branding/templates/
DONATE: 'https://ocelot-social.herokuapp.com/donations', // we use 'ocelot-social.herokuapp.com' at the moment, because redirections of 'ocelot.social' subpages are not working correctly
IMPRINT: 'https://ocelot-social.herokuapp.com/imprint', // we use 'ocelot-social.herokuapp.com' at the moment, because redirections of 'ocelot.social' subpages are not working correctly
TERMS_AND_CONDITIONS: null,

View File

@ -1,9 +1,11 @@
// this file is duplicated in `backend/src/config/links.js` and `webapp/constants/links.js` and replaced on rebranding
export default {
LANDING_PAGE: '/login', // examples: '/login', '/registration'
ORGANIZATION: 'https://ocelot.social',
SUPPORT: 'https://ocelot.social',
// on null or empty strings internal imprint is used, see 'webapp/locales/html/'
// on null or empty strings internal pages are used, see 'webapp/locales/html/'
// you can find and store templates at https://github.com/Ocelot-Social-Community/Ocelot-Social-Deploy-Rebranding/tree/master/branding/templates/
DONATE: 'https://ocelot-social.herokuapp.com/donations', // we use 'ocelot-social.herokuapp.com' at the moment, because redirections of 'ocelot.social' subpages are not working correctly
IMPRINT: 'https://ocelot-social.herokuapp.com/imprint', // we use 'ocelot-social.herokuapp.com' at the moment, because redirections of 'ocelot.social' subpages are not working correctly
TERMS_AND_CONDITIONS: null,

View File

@ -1,4 +1,5 @@
import isEmpty from 'lodash/isEmpty'
import links from '~/constants/links.js'
export default async ({ store, env, route, redirect }) => {
const publicPages = env.publicPages
@ -22,5 +23,5 @@ export default async ({ store, env, route, redirect }) => {
params.path = route.path
}
return redirect('/registration', params)
return redirect(links.LANDING_PAGE, params)
}