Remove unnecessary html_safe in paths
Paths are just regular strings with no HTML, so they don't need to be marked as safe HTML.
This commit is contained in:
@@ -8,7 +8,7 @@ class Admin::Legislation::HomepagesController < Admin::Legislation::BaseControll
|
||||
|
||||
def update
|
||||
if @process.update(process_params)
|
||||
link = legislation_process_path(@process).html_safe
|
||||
link = legislation_process_path(@process)
|
||||
redirect_back(fallback_location: (request.referer || root_path),
|
||||
notice: t("admin.legislation.processes.update.notice", link: link))
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user