X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fhelpers%2FTechnique.js;h=f3daae7d1dfd53453dd1166edaa639f27dcf167d;hb=df85042df90aee0b09eb11a3cd5bbc98169cb765;hp=b289341d34833bbb4b99262885522786260da515;hpb=8e274ddec45800cd727bb7138683b81cf2f7dcb1;p=alttp.git diff --git a/resources/js/helpers/Technique.js b/resources/js/helpers/Technique.js index b289341..f3daae7 100644 --- a/resources/js/helpers/Technique.js +++ b/resources/js/helpers/Technique.js @@ -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}`; }