Skip to content

Commit

Permalink
Make navigation API more robust.
Browse files Browse the repository at this point in the history
Fixes #755.
  • Loading branch information
wvengen committed Oct 7, 2020
1 parent 912f57b commit 78c4ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/v1/navigations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def transform(items)
items.map do |item|
r = {}
r[:name] = item[:name]
r[:url] = request.base_url + item[:url] if item[:url] != '#'
r[:url] = request.base_url + item[:url] if item[:url] && item[:url] != '#'
r[:items] = transform(item[:items]) if item[:items]
r
end
Expand Down

0 comments on commit 78c4ebc

Please sign in to comment.