Navigation Menu

Skip to content

Commit

Permalink
fix: encode doc name in doc-tab page
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Oct 4, 2017
1 parent 866928e commit 69e1dc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -931,7 +931,7 @@ public void setDefaultTranslationDocType(String fileName) {
public String getEditorUrl(String sourceLocale, String docId) {
return urlUtil.editorDocumentUrl(projectSlug, versionSlug,
selectedLocale.getLocaleId(),
LocaleId.fromJavaName(sourceLocale), TokenUtil.encode(docId));
LocaleId.fromJavaName(sourceLocale), urlUtil.encodeString(TokenUtil.encode(docId)));
}

public String encodeDocId(String docId) {
Expand Down
Expand Up @@ -331,7 +331,7 @@

<ui:fragment rendered="#{hLocale.active}">
<a
href="#{request.contextPath}/webtrans/Application.xhtml?project=#{versionHomeAction.projectSlug}&amp;iteration=#{versionHomeAction.versionSlug}&amp;localeId=#{hLocale.localeId}&amp;locale=#{facesContext.externalContext.requestLocale}#{dswidParam}#view:doc;doc:#{versionHomeAction.selectedDocument.docId}">
href="#{request.contextPath}/webtrans/translate?project=#{versionHomeAction.projectSlug}&amp;iteration=#{versionHomeAction.versionSlug}&amp;localeId=#{hLocale.localeId}&amp;locale=#{facesContext.externalContext.requestLocale}#{dswidParam}#view:doc;doc:#{versionHomeAction.encodeDocId(versionHomeAction.selectedDocument.docId)}">
<div class="list__item">
<div class="list__item__info">
<h3 class="list__title">
Expand Down

0 comments on commit 69e1dc2

Please sign in to comment.