Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

196
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda