Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 1349 → Rev 1350

/trunk/src/org/tela_botanica/del/client/composants/partageurl/PartageUrlPresenteur.java
58,7 → 58,7
CacheClient cache = CacheClient.getInstance();
String arguments = "";
if (cache.getPageCourante() == ConstantesNavigation.PAGE_RECHERCHE_IMAGES) {
if (cache.getPageCourante().equals(ConstantesNavigation.PAGE_RECHERCHE_IMAGES)) {
InformationsRecherche infoRecherche;
infoRecherche = cache.getInformationsRechercheImage();
arguments = infoRecherche.versChaineRequete() + "#" + ConstantesNavigation.PAGE_RECHERCHE_IMAGES;
71,7 → 71,7
if (protocole != "~") {
url += protocole;
}
} else if (cache.getPageCourante() == ConstantesNavigation.PAGE_RECHERCHE_OBSERVATIONS) {
} else if (cache.getPageCourante().equals(ConstantesNavigation.PAGE_RECHERCHE_OBSERVATIONS) || cache.getPageCourante().equals("")) {
InformationsRecherche infoRecherche;
infoRecherche = cache.getInformationsRechercheObservation();
arguments = infoRecherche.versChaineRequete() + "#" + ConstantesNavigation.PAGE_RECHERCHE_OBSERVATIONS;
79,6 → 79,9
} else {
url = Window.Location.getHref();
}
// remplacement batard pour corriger l'url
// TODO: factoriser toute la fonction
url = url.replaceAll("\\?&", "?");
return url;
}