Commit 4eba1f1f authored by Gabriel Mazetto's avatar Gabriel Mazetto

Fix GeoNode url generation to prevent relative_url_root = "/"

parent 94e34e15
......@@ -46,7 +46,7 @@ class GeoNode < ActiveRecord::Base
self.schema = new_uri.scheme
self.host = new_uri.host
self.port = new_uri.port
self.relative_url_root = new_uri.path if new_uri.path != '/'
self.relative_url_root = new_uri.path != '/' ? new_uri.path : nil
end
def notify_url
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment