From b86bf1917502a6240b8cc32e23c455984b50518b Mon Sep 17 00:00:00 2001 From: ReverM Date: Thu, 13 Nov 2025 20:46:48 -0500 Subject: Fixed bug with random and stats page Both bugs stemmed from turbolinks being weird. This disable turbolinks for both of these pages. --- app/views/layouts/quotes.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/views/layouts/quotes.html.haml b/app/views/layouts/quotes.html.haml index 4b21000..040fdfe 100644 --- a/app/views/layouts/quotes.html.haml +++ b/app/views/layouts/quotes.html.haml @@ -21,12 +21,12 @@ %li= link_to_unless_current "Home", quotes_url %li= link_to_unless_current "Latest", latest_quotes_url %li= link_to_unless_current "Top", top_quotes_url - %li= link_to "Random", random_quotes_url + %li{"data-turbolinks" => "false"}= link_to "Random", random_quotes_url - if user_signed_in? %li= link_to_unless_current "Submit", new_quote_url %li= link_to_unless_current "Tags", tags_quotes_url %li= link_to_unless_current "Search", search_form_quotes_url - %li= link_to_unless_current "Stats", stats_quotes_url + %li{"data-turbolinks" => "false"}= link_to_unless_current "Stats", stats_quotes_url %li= link_to_unless_current "Feed", latest_quotes_url(:atom) - if user_signed_in? %li= link_to_unless_current "Admin", admin_url -- cgit 1.4.1