When use redirect avoid to use fragment

The fragment is the part after the pound, #. If a fragment is used,
first the page is loaded and then the fragment is processed
afterwards. Not using fragments it can go directly to the correct
page.

FEA: ItEr74S04BugFixing
This commit is contained in:
Óscar González Fernández 2011-05-09 16:07:16 +02:00
parent eaf2538a64
commit c05150b234

View file

@ -221,7 +221,8 @@ public class URLHandler<T> {
}
private String buildRedirectURL(String fragment) {
StringBuilder linkValue = new StringBuilder(page).append(fragment);
StringBuilder linkValue = new StringBuilder(page).append(";").append(
!fragment.isEmpty() ? fragment.substring(1) : "");
return linkValue.toString();
}