]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/pages/Techniques.js
basic content editing
[alttp.git] / resources / js / components / pages / Techniques.js
index a89c3a252e01f560449110a2739217b2487e6d70..c2d7aec80627aaec51f6344d113ecbfccb55530d 100644 (file)
@@ -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 }) => {
                        <title>{i18n.t(`${namespace}.heading`)}</title>
                        <meta name="description" content={i18n.t(`${namespace}.description`)} />
                </Helmet>
+               <CanonicalLinks base="/tech" />
                <Overview
                        filter={filter}
                        namespace={namespace}