Added functionality to disable COAR notify support link in footer

Also fixed error that showed a blank page instead of a 404 when disabling EULA/Privacy Policy pages
This commit is contained in:
Alexandre Vryghem
2024-04-12 01:38:34 +02:00
parent 2ef2e9b334
commit e10630f131
15 changed files with 83 additions and 59 deletions

View File

@@ -3,6 +3,7 @@ import { getInfoModulePath } from '../app-routing-paths';
export const END_USER_AGREEMENT_PATH = 'end-user-agreement';
export const PRIVACY_PATH = 'privacy';
export const FEEDBACK_PATH = 'feedback';
export const COAR_NOTIFY_SUPPORT = 'coar-notify-support';
export function getEndUserAgreementPath() {
return getSubPath(END_USER_AGREEMENT_PATH);
@@ -16,6 +17,10 @@ export function getFeedbackPath() {
return getSubPath(FEEDBACK_PATH);
}
export function getCOARNotifySupportPath(): string {
return getSubPath(COAR_NOTIFY_SUPPORT);
}
function getSubPath(path: string) {
return `${getInfoModulePath()}/${path}`;
}