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

93
Views
Navlink containing space won't get bold

I use NavLink to bold active link, but some of my link contain space and don't get bold when clicked, how to fix ?

categories.map((c,i) => (
        <NavLink
          key={i}
          exact
          activeClassName="is-active"
          to={`/series/category/${c}`}
        >
          {c}
        </NavLink>
    ))

I know for sure that it is due to the spaces because when I do this, links bold correctly (but the redirection doesn't work as my pages must contain space) :

to={`/series/category/${c.replace(/\s/g, "")}`}

Red squared links won't get bold.

enter image description here

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

This trick does the job :

to={`/series/category/${c.replace(/\s/g, "%20")}`}
about 4 years ago · Santiago Gelvez 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!