Skip to content

Commit 1252be2

Browse files
committed
fixed route check in not_found
1 parent cf9a502 commit 1252be2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/views/errors/not_found.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<p class="is-lead">The page you're looking for couldn't be found.</p>
77

88
<%
9-
is_user = request.original_fullpath.include?(user_path)
9+
is_user = params[:id].present? ? request.original_fullpath.include?(user_path(id: params[:id])) : false
1010
%>
1111

1212
<p>You might have followed an old link, or the <%= is_user ? 'user' : 'post' %> might have been deleted.</p>

0 commit comments

Comments
 (0)