import { useUser } from '../../helpers/UserContext';
import i18n from '../../i18n';
-const Technique = ({ type }) => {
+const Technique = ({ basepath, type }) => {
const params = useParams();
const { name } = params;
const user = useUser();
<meta name="description" content={getTranslation(technique, 'short', i18n.language)} />
</Helmet>
<CanonicalLinks
- base={`/tech/${technique.name}`}
+ base={`/${basepath}/${technique.name}`}
lang={getMatchedLocale(technique, i18n.language)}
langs={getLanguages(technique)}
/>
};
Technique.propTypes = {
+ basepath: PropTypes.string,
type: PropTypes.string,
};