Last active
September 17, 2021 12:05
-
-
Save alvaro-prieto/ce96c563de847ca142bcd96543f19c87 to your computer and use it in GitHub Desktop.
Función para redirigir desde javascript, teniendo en cuenta la urlbase (no es necesario suministrarselo)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//La funcion redirige() JS acepta como parametro la url a partir del /, es decir, | |
//si por ejemplo queremos ir a: | |
//http://aprieto_web_salud.quid.es/indice | |
//sera suficiente con hacer: | |
redirige("/indice"); | |
//o incluso | |
redirige("indice"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment