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:
@@ -23,7 +23,7 @@ class Admin::Legislation::ProcessesController < Admin::Legislation::BaseControll
|
||||
|
||||
def create
|
||||
if @process.save
|
||||
link = legislation_process_path(@process).html_safe
|
||||
link = legislation_process_path(@process)
|
||||
notice = t("admin.legislation.processes.create.notice", link: link)
|
||||
redirect_to edit_admin_legislation_process_path(@process), notice: notice
|
||||
else
|
||||
@@ -36,7 +36,7 @@ class Admin::Legislation::ProcessesController < Admin::Legislation::BaseControll
|
||||
if @process.update(process_params)
|
||||
set_tag_list
|
||||
|
||||
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