You have <%= link_to "unread mail", dmails_path(search: { folder: "received" }) %>.

<%= link_to "Close this", "#", id: "hide-dmail-notice" %>