Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

209
Views
Problem with relative path when applying js file from another directory

I'm trying to load JS file in another directory to an HTML file that I'm working on. I tried the code below but it seems to be not working with error 404. What is the problem here?

<script th:src="@{../../one-ui/src/assets/_js/pages/dashboard.min.js}"></script>

Path of the js file: JavaProject\src\main\resources\one-ui\src\assets\ _js\pages\dashboard.min.js

Path of the html file: JavaProject\src\main\resources\templates\dashboard\graph.html

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!