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

332
Views
Vue js. How do I get current url in index.html file?

Vue js. How do I get current url in index.html file? With pure js in index.html I get only url of the start page. To get the url of the other pages I have to refresh or the value of the initial page remains.

<!-- index.php laravel blade -->

<div id="ui">
    <router-view></router-view>
</div>
<script>
    window.CanvasUI = @json($config);
</script>

<script type="text/javascript" src="{{ asset(mix('js/canvas-ui.js')) }}"></script>

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

With pure JS:

window.location.href
about 4 years ago · Juan Pablo Isaza Report

0

Easy way to get baseUrl in VueJs is

var baseUrl = window.location.origin

about 4 years ago · Juan Pablo Isaza Report
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!