Merge pull request #18 from dmkondr/main

Fix back button not working on profile page after form submission
This commit is contained in:
Stanko Krtalić
2025-09-16 11:41:16 +02:00
committed by GitHub

View File

@@ -23,7 +23,9 @@ module ApplicationHelper
end
def link_back
link_back_to request.referrer || root_path
back_url = request.referrer
back_url = root_path if back_url.nil? || back_url == request.url
link_back_to back_url
end
def link_back_to(destination)