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

168
Views
Changed "&amp%3B" to "&"

I get an output URL like this:

http://127.0.0.1:8000/cari?q=query&amp%3Bprovince=13&page=1

How do I change "&amp%3B" to just "&"? The output URL I want is like this:

http://127.0.0.1:8000/cari?q=query&province=13&page=1

What should I change in the following code:

var jQuery_1_8_2 = jQuery.noConflict();
$(function () {
    var array = JSON.parse('{!! !empty($total_search_query) ? json_encode($total_search_query) : "[]" !!}');
    console.log(array);
    $('#map2').vectorMap({
        map: 'indonesia-adm1_merc',
        backgroundColor: '#ADF3F0',
        regionStyle: {
            initial: {
                fill: '#FFFFFF'
            },
            hover: {
                fill: '#175083'
            }
        },
        zoomButtons: false,
        zoomOnScroll: false,
        zoomOnClick: false,
        zoomMax: 1,
        normalizeFunction: 'polynomial',
        onRegionClick: function (event, code) {
            var url = '{{ route("search", ["q" => request()->get("q"), "province" => ":id"]) }}';
            url = url.replace("%3Aid", code.toLowerCase());
            window.location.href = url;
        },
        onRegionTipShow: function (event, label, code) {
            var map = $('#map2').vectorMap('get', 'mapObject');
            var regionName = map.getRegionName(code);
            var a = array.find(a => a.name === myTrim(regionName))['count'];
            
            label.html('<div class="map-tooltip"><h4 class="header">' + regionName + '</h4><p class="description">Total: ' + a + '</p></div>');
        }
    });
}(jQuery_1_8_2));
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!