We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf9a502 commit 1252be2Copy full SHA for 1252be2
1 file changed
app/views/errors/not_found.html.erb
@@ -6,7 +6,7 @@
6
<p class="is-lead">The page you're looking for couldn't be found.</p>
7
8
<%
9
- is_user = request.original_fullpath.include?(user_path)
+ is_user = params[:id].present? ? request.original_fullpath.include?(user_path(id: params[:id])) : false
10
%>
11
12
<p>You might have followed an old link, or the <%= is_user ? 'user' : 'post' %> might have been deleted.</p>
0 commit comments