refinerycms-llama_menus 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,11 +4,15 @@ module Refinery
4
4
 
5
5
  delegate_all
6
6
 
7
- def url
7
+ def url(routing_proxy=nil)
8
8
  if object.url?
9
9
  object.url
10
10
  elsif object.linkable
11
- object.linkable
11
+ if routing_proxy.present?
12
+ [routing_proxy, object.linkable]
13
+ else
14
+ object.linkable
15
+ end
12
16
  else
13
17
  ''
14
18
  end
@@ -12,4 +12,4 @@ nav.navbar.navbar-default role='navigation'
12
12
  ul.nav.navbar-nav
13
13
  - Refinery::Menus::MenuItemDecorator.decorate_collection(widget.menu_widget.menu.menu_items.order(:position)).each do |menu_item|
14
14
  li
15
- = link_to menu_item.label, menu_item.url
15
+ = link_to menu_item.label, menu_item.url(refinery)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: refinerycms-llama_menus
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.2
5
+ version: 1.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Nick Bolt