diff --git a/portal-web/docroot/html/portlet/wiki/page_attachment_action.jsp b/portal-web/docroot/html/portlet/wiki/page_attachment_action.jsp
index 68cb63470ee9068acc840abced1eafbc568b697c..609826966877e2848c73702de2b8df6850f686f8 100644
--- a/portal-web/docroot/html/portlet/wiki/page_attachment_action.jsp
+++ b/portal-web/docroot/html/portlet/wiki/page_attachment_action.jsp
@@ -30,27 +30,19 @@ WikiPage wikiPage = WikiPageAttachmentsUtil.getPage(attachmentsFileEntry.getFile
 	<c:choose>
 		<c:when test="<%= viewTrashAttachments %>">
 			<c:if test="<%= WikiNodePermission.contains(permissionChecker, wikiPage.getNodeId(), ActionKeys.ADD_ATTACHMENT) %>">
-
-				<%
-				TrashEntry trashEntry = TrashEntryLocalServiceUtil.getEntry(DLFileEntry.class.getName(), attachmentsFileEntry.getFileEntryId());
-				%>
-
 				<portlet:actionURL var="restoreEntryURL">
 					<portlet:param name="struts_action" value="/wiki/restore_page_attachment" />
 					<portlet:param name="<%= Constants.CMD %>" value="<%= Constants.RESTORE %>" />
 					<portlet:param name="redirect" value="<%= currentURL %>" />
-					<portlet:param name="trashEntryId" value="<%= String.valueOf(trashEntry.getEntryId()) %>" />
+					<portlet:param name="nodeId" value="<%= String.valueOf(wikiPage.getNodeId()) %>" />
+					<portlet:param name="title" value="<%= wikiPage.getTitle() %>" />
+					<portlet:param name="fileName" value="<%= attachmentsFileEntry.getTitle() %>" />
 				</portlet:actionURL>
 
-				<%
-				String taglibOnClick = "Liferay.fire('" + renderResponse.getNamespace() + "checkEntry', {trashEntryId: " + trashEntry.getEntryId() + ", uri: '" + restoreEntryURL.toString() + "'});";
-				%>
-
 				<liferay-ui:icon
 					image="undo"
 					message="restore"
-					onClick="<%= taglibOnClick %>"
-					url="javascript:;"
+					url="<%= restoreEntryURL %>"
 				/>
 			</c:if>
 
