vendor/refinerycms/core/lib/refinery/plugin.rb in refinerycms-0.9.8 vs vendor/refinerycms/core/lib/refinery/plugin.rb in refinerycms-0.9.8.1
- old
+ new
@@ -94,14 +94,14 @@
# Returns a hash that can be used to create a url that points to the administration part of the plugin.
def url
return @url if defined?(@url)
if self.controller.present?
- @url = {:controller => "admin/#{self.controller}"}
+ @url = {:controller => "/admin/#{self.controller}"}
elsif self.directory.present?
- @url = {:controller => "admin/#{self.directory.split('/').pop}"}
+ @url = {:controller => "/admin/#{self.directory.split('/').pop}"}
else
- @url = {:controller => "admin/#{self.name}"}
+ @url = {:controller => "/admin/#{self.name}"}
end
end
protected