diff --git a/portal-web/docroot/html/portlet/wiki/page_activity_attachment_action.jsp b/portal-web/docroot/html/portlet/wiki/page_activity_attachment_action.jsp
index 7a1363d3ce87d3e68b62e66abb555d8369049840..fa5e7bc3d82d956868143c2f0e8ae907ad94e481 100644
--- a/portal-web/docroot/html/portlet/wiki/page_activity_attachment_action.jsp
+++ b/portal-web/docroot/html/portlet/wiki/page_activity_attachment_action.jsp
@@ -30,27 +30,18 @@ WikiPage wikiPage = (WikiPage)request.getAttribute(WebKeys.WIKI_PAGE);
 
 <liferay-ui:icon-menu>
 	<c:if test="<%= fileEntry.isInTrash() && (socialActivity.getType() == SocialActivityConstants.TYPE_MOVE_ATTACHMENT_TO_TRASH) && WikiNodePermission.contains(permissionChecker, wikiPage.getNodeId(), ActionKeys.ADD_ATTACHMENT) %>">
-
-		<%
-		TrashEntry trashEntry = TrashEntryLocalServiceUtil.getEntry(DLFileEntry.class.getName(), fileEntry.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="<%= fileEntry.getTitle() %>" />
 		</portlet:actionURL>
 
-		<%
-		String taglibOnClick = "Liferay.fire('" + renderResponse.getNamespace() + "checkEntry', {trashEntryId: " + trashEntry.getEntryId() + ", uri: '" + restoreEntryURL.toString() + "'});";
-		%>
-
 		<liferay-ui:icon
-			image="undo"
 			message="restore-attachment"
-			onClick="<%= taglibOnClick %>"
-			url="javascript:;"
+			url="restoreEntryURL"
 		/>
 	</c:if>
 
