]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/helpers/Technique.js
relax unique constraint on techniques
[alttp.git] / resources / js / helpers / Technique.js
index b289341d34833bbb4b99262885522786260da515..f3daae7d1dfd53453dd1166edaa639f27dcf167d 100644 (file)
@@ -1,6 +1,12 @@
 import i18n from '../i18n';
 
 export const getLink = tech => {
+       if (tech.type === 'dungeon') {
+               return `/dungeons/${tech.name}`;
+       }
+       if (tech.type === 'location') {
+               return `/locations/${tech.name}`;
+       }
        if (tech.type === 'mode') {
                return `/modes/${tech.name}`;
        }