]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/techniques/List.js
more content variety
[alttp.git] / resources / js / components / techniques / List.js
index 0549cd38bc0642d981285388b98cb265129e5e2f..58f0eaef254a5c10ba118b92e5b471f8e5e31389 100644 (file)
@@ -2,14 +2,17 @@ import PropTypes from 'prop-types';
 import React from 'react';
 import { Link } from 'react-router-dom';
 
-import { getTranslation } from '../../helpers/Technique';
+import {
+       getLink,
+       getTranslation,
+} from '../../helpers/Technique';
 import i18n from '../../i18n';
 
 const List = ({ techniques }) => <ul className="tech-list">
        {techniques.map(tech =>
                <li key={tech.id}>
                        <h2>
-                               <Link to={`/tech/${tech.name}`}>
+                               <Link to={getLink(tech)}>
                                        {getTranslation(tech, 'title', i18n.language)}
                                </Link>
                        </h2>