Skip to content

Commit

Permalink
Fixes #30495 - Add main_app prefix to some route helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
shiramax authored and ezr-ondrej committed Jul 30, 2020
1 parent a0adde5 commit a641030
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def options_for_puppetclass_selection(klass, type)
:'data-class-id' => klass.id,
:'data-class-name' => klass.name,
:'data-type' => type,
:'data-url' => parameters_puppetclass_path(:id => klass.id),
:'data-url' => main_app.parameters_puppetclass_path(:id => klass.id),
:rel => 'twipsy',
}
end
Expand Down
4 changes: 2 additions & 2 deletions app/helpers/search_bar_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def mount_search_bar(
bookmarks = {}
if use_bookmarks
bookmarks = {
url: api_bookmarks_path,
url: main_app.api_bookmarks_path,
canCreate: authorizer.can?(:create_bookmarks),
documentationUrl: documentation_url("4.1.5Searching"),
}
Expand All @@ -35,7 +35,7 @@ def get_search_props(
autocomplete_id: "searchBar"
)
bookmarks = {
url: api_bookmarks_path,
url: main_app.api_bookmarks_path,
canCreate: authorizer.can?(:create_bookmarks),
documentationUrl: documentation_url("4.1.5Searching"),
}
Expand Down

0 comments on commit a641030

Please sign in to comment.