Skip to content

Commit

Permalink
fix spacing and linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zunairkhan811 committed Dec 8, 2023
1 parent 56014b3 commit 9e1da85
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions app/controllers/likes_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ def create

def redirect_url
if request.referer.present? && request.referer.include?("/users/#{params[:user_id]}/posts")
# If the referrer URL contains "/users/:user_id/posts", redirect to that URL
request.referer
else
# Default redirect URL if no referrer or referrer doesn't match the pattern
user_posts_path(params[:user_id])
end
end
Expand Down
3 changes: 0 additions & 3 deletions app/views/shared/_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
<li><a class="dropdown-item" href="javascript:void(0)">Link 1</a></li>
</ul>
</li>



</ul>
</div>
</div>
Expand Down

0 comments on commit 9e1da85

Please sign in to comment.