diff --git a/src/main/webapp/WEB-INF/views/ocorrenciamunicipais/create.jspx b/src/main/webapp/WEB-INF/views/ocorrenciamunicipais/create.jspx index 5b130a1ee5adc83a5a31913d5370e747d1aee374..87fa975aa0ea8b8928befcca6fab9cdacb34e8ab 100644 --- a/src/main/webapp/WEB-INF/views/ocorrenciamunicipais/create.jspx +++ b/src/main/webapp/WEB-INF/views/ocorrenciamunicipais/create.jspx @@ -42,7 +42,7 @@ //Get complete base URL if (!window.location.origin) window.location.origin = window.location.protocol+"//"+window.location.host; - RequestBaseUrl = window.location.origin + "/estacao-juventude" + "/ocorrenciamunicipais"; + RequestBaseUrl = window.location.origin + "/" + window.location.pathname.split('/')[1] + "/ocorrenciamunicipais"; //Create and send to server a request of //the list of "Municipios" that belongs to the "Estado" chosen diff --git a/src/main/webapp/WEB-INF/views/orgaoexecutores/create.jspx b/src/main/webapp/WEB-INF/views/orgaoexecutores/create.jspx index 7ea71b0d900e753d85b449be620e4c7261949780..02b0fcf1c15d7da0f9fc230e905187af151a6b7e 100644 --- a/src/main/webapp/WEB-INF/views/orgaoexecutores/create.jspx +++ b/src/main/webapp/WEB-INF/views/orgaoexecutores/create.jspx @@ -39,7 +39,7 @@ if (!window.location.origin) window.location.origin = window.location.protocol+"//"+window.location.host; - RequestBaseUrl = window.location.origin + "/estacao-juventude" + "/orgaoexecutores"; + RequestBaseUrl = window.location.origin + "/" + window.location.pathname.split('/')[1] + "/orgaoexecutores"; //Create and send to server a request of //the list of "Municipios" that belongs to the "Estado" chosen diff --git a/src/main/webapp/WEB-INF/views/orgaoexecutores/update.jspx b/src/main/webapp/WEB-INF/views/orgaoexecutores/update.jspx index 0e4f16344ebe19939ec3cd7b0ee31a51d1991401..7eceaffd74b890f4108ed3a935494aed5a0c2ce5 100644 --- a/src/main/webapp/WEB-INF/views/orgaoexecutores/update.jspx +++ b/src/main/webapp/WEB-INF/views/orgaoexecutores/update.jspx @@ -40,7 +40,7 @@ if (!window.location.origin) window.location.origin = window.location.protocol+"//"+window.location.host; - RequestBaseUrl = window.location.origin + "/estacao-juventude" + "/orgaoexecutores"; + RequestBaseUrl = window.location.origin + "/" + window.location.pathname.split('/')[1] + "/orgaoexecutores"; //Create and send to server a request of //the list of "Municipios" that belongs to the "Estado" chosen