Use path helper instead of url helper

This commit is contained in:
Luke Bennett 2017-12-03 18:46:07 +00:00
parent e0f8413056
commit 19dcb2da05
No known key found for this signature in database
GPG Key ID: A738E9C68D3BF31A
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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,