Skip to content

Commit

Permalink
removed double decode
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioG70 committed Nov 14, 2024
1 parent a6842b6 commit 20e83c3
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import java.util.TreeMap;
import java.util.TreeSet;

import com.google.gwt.http.client.URL;
import org.roda.core.data.v2.index.sublist.Sublist;

import com.databasepreservation.common.client.ClientConfigurationManager;
Expand Down Expand Up @@ -77,6 +78,9 @@

import config.i18n.client.ClientMessages;

import static com.databasepreservation.common.client.tools.HistoryManager.HISTORY_SEP_ESCAPE;
import static com.databasepreservation.common.client.tools.HistoryManager.HISTORY_SEP_REGEX;

/**
* @author Bruno Ferreira <bferreira@keep.pt>
*/
Expand Down Expand Up @@ -290,7 +294,7 @@ private SafeHtml getForeignKeyHTML(String prefix, Set<Ref> refs, ViewerRow row)
}

Hyperlink hyperlink = new Hyperlink(refName,
HistoryManager.linkToForeignKey(database.getUuid(), ref.refTable.getId(), columnNamesAndValues));
URL.decode(HistoryManager.linkToForeignKey(database.getUuid(), ref.refTable.getId(), columnNamesAndValues)));
hyperlink.addStyleName("related-records-link");
b.appendHtmlConstant(hyperlink.toString());
firstRef = false;
Expand Down

0 comments on commit 20e83c3

Please sign in to comment.