X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=inline;f=resources%2Fjs%2Fcomponents%2Fpages%2FTechniques.js;h=c2d7aec80627aaec51f6344d113ecbfccb55530d;hb=7c6716036321ba09846785720e81459aad55a323;hp=a89c3a252e01f560449110a2739217b2487e6d70;hpb=18cd02860ba7889360ce3547b44faa0daa807a5e;p=alttp.git diff --git a/resources/js/components/pages/Techniques.js b/resources/js/components/pages/Techniques.js index a89c3a2..c2d7aec 100644 --- a/resources/js/components/pages/Techniques.js +++ b/resources/js/components/pages/Techniques.js @@ -5,6 +5,7 @@ import { Helmet } from 'react-helmet'; import { withTranslation } from 'react-i18next'; import NotFound from './NotFound'; +import CanonicalLinks from '../common/CanonicalLinks'; import ErrorBoundary from '../common/ErrorBoundary'; import ErrorMessage from '../common/ErrorMessage'; import Loading from '../common/Loading'; @@ -38,11 +39,8 @@ const Techniques = ({ namespace, type }) => { setLoading(true); } axios - .get(`/api/content`, { - params: { - type, - ...filter, - }, + .get(`/api/pages/${type}`, { + params: filter, signal: ctrl.signal }) .then(response => { @@ -83,6 +81,7 @@ const Techniques = ({ namespace, type }) => {