mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-04-23 04:32:30 +09:00
Merge pull request #18 from dmkondr/main
Fix back button not working on profile page after form submission
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user