Use path helper instead of url helper
This commit is contained in:
parent
e0f8413056
commit
19dcb2da05
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ class Projects::BoardsController < Projects::ApplicationController
|
|||
private
|
||||
|
||||
def assign_endpoint_vars
|
||||
@boards_endpoint = project_boards_url(project)
|
||||
@boards_endpoint = project_boards_path(project)
|
||||
@bulk_issues_path = bulk_update_project_issues_path(project)
|
||||
@namespace_path = project.namespace.full_path
|
||||
@labels_endpoint = project_labels_path(project)
|
||||
|
|
|
@ -6,7 +6,7 @@ module BoardsHelper
|
|||
def board_data
|
||||
{
|
||||
boards_endpoint: @boards_endpoint,
|
||||
lists_endpoint: board_lists_url(board),
|
||||
lists_endpoint: board_lists_path(board),
|
||||
board_id: board.id,
|
||||
disabled: "#{!can?(current_user, :admin_list, current_board_parent)}",
|
||||
issue_link_base: build_issue_link_base,
|
||||
|
|
Loading…
Reference in a new issue