lib/scrivito/link_parser.rb in scrivito_sdk-0.30.0 vs lib/scrivito/link_parser.rb in scrivito_sdk-0.40.0.rc1

- old
+ new

@@ -7,9 +7,14 @@ @port = port end def parse(url) uri = Addressable::URI.parse(url) + + if (params = route(uri.to_s)) && params[:controller] == 'scrivito/ui' + uri.path = params[:application_path] + end + link_params = {} if obj = find_obj(uri) link_params[:obj] = obj else