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

188
Views
how can i render a react Prompt in a specific URL

i need to render this prompt but only when the next url doesn't begin with /calendar/ I tried with window.location.pathname but this only gets the current URL, i need to know the next URL in order to know if i must render or not this prompt, i dont want the prompt gets rendered when URL change from "/calendar/" to "/calendar/information" because it's still the same page

<Prompt
  when={(this.props.agendaPlaces.length >=3 && this.props.users.length === 0)}//
  message={JSON.stringify({
    language: this.props.i18n.language,
    header: t('userLeaveConfirmationTitle'), 
    header2: t('userLeaveConfirmationTitle2'), 
    content:t('userLeaveConfirmationBody'),
    confirm:t('userLeaveConfirmationConfirm'),
    cancel:t('userLeaveConfirmationCancel')
  })}
/>
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!