diff --git a/src/client/app/components/HeaderButtonsComponent.tsx b/src/client/app/components/HeaderButtonsComponent.tsx index 3464c8a6c..21bd5288b 100644 --- a/src/client/app/components/HeaderButtonsComponent.tsx +++ b/src/client/app/components/HeaderButtonsComponent.tsx @@ -36,7 +36,7 @@ export default function HeaderButtonsComponent() { const version = useAppSelector(selectOEDVersion); const helpUrl = useAppSelector(selectHelpUrl); // options help - const optionsHelp = helpUrl + '/optionsMenu.html'; + const optionsHelp = helpUrl + '/optionsMenu/'; const loggedInAsAdmin = useAppSelector(selectIsAdmin); const loggedIn = useAppSelector(selectIsLoggedIn); @@ -127,7 +127,7 @@ export default function HeaderButtonsComponent() { display: pathname === '/' ? 'block' : 'none' }; // Admin help or regular user page - const neededPage = loggedInAsAdmin ? '/adminPageChoices.html' : '/pageChoices.html'; + const neededPage = loggedInAsAdmin ? '/adminPageChoices/' : '/pageChoices/'; const currentPageChoicesHelp = helpUrl + neededPage; setState(prevState => ({ diff --git a/src/client/app/components/LanguageSelectorComponent.tsx b/src/client/app/components/LanguageSelectorComponent.tsx index 5a5c3f035..24dbe7e99 100644 --- a/src/client/app/components/LanguageSelectorComponent.tsx +++ b/src/client/app/components/LanguageSelectorComponent.tsx @@ -6,7 +6,6 @@ import * as React from 'react'; import { FormattedMessage } from 'react-intl'; import { DropdownItem, DropdownMenu, DropdownToggle, UncontrolledDropdown } from 'reactstrap'; import { selectSelectedLanguage, updateSelectedLanguage } from '../redux/slices/appStateSlice'; -import { selectOEDVersion } from '../redux/api/versionApi'; import { useAppDispatch, useAppSelector } from '../redux/reduxHooks'; import { LanguageTypes } from '../types/redux/i18n'; import { selectBaseHelpUrl } from '../redux/slices/adminSlice'; @@ -19,10 +18,9 @@ export default function LanguageSelectorComponent() { const dispatch = useAppDispatch(); const selectedLanguage = useAppSelector(selectSelectedLanguage); - const version = useAppSelector(selectOEDVersion); const baseHelpUrl = useAppSelector(selectBaseHelpUrl); - const helpUrl = baseHelpUrl + version; + const helpUrl = baseHelpUrl; return ( <> @@ -48,7 +46,7 @@ export default function LanguageSelectorComponent() { + href={helpUrl + '/language/'}>