codeezzi / utility

Utility is meant to be a simple easy to use unit conversion website plus bunch of utility tools. This will be a static website made completly from HTML,CSS and Javascript or any other Frontend Framwork.

Home Page:http://codeezzi-utility.surge.sh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug in template.js

shubham2704 opened this issue · comments

Description :

when we try to navigate from one tool to another, for example if we are on density conversion tool ##### PATH /conversionTools/density/density.html and we try to navigate to energy conversion tool then it is unable to get the path because the path that gets passed is /conversionTools/density/conversionTools/Energy/energy.html instead of /conversionTools/Energy/energy.html.

  • I think the bug is on the node generator function on line 33-40 in assets/scripts/template.js
  • The function is returning the URL as category + tool.url , which is very well working for the index.html. But on the other files it adds the category twice which is why we are unable to get the URL.

@negarjf Try to solve the problem

  • Anyone can contribute to this issue but before making a pull request discuss your solution in the comment section of this issue here, with @shubham2704 or @negarjf

I'll have a look at this.