lib/scrivito/link_parser.rb in scrivito_sdk-1.3.1 vs lib/scrivito/link_parser.rb in scrivito_sdk-1.4.0.rc1

- old
+ new

@@ -8,10 +8,11 @@ end def parse(url) uri = Addressable::URI.parse(url) - if (params = sdk_route(uri.to_s)) && params[:controller] == 'scrivito/ui' + if application_uri?(uri) && (params = sdk_route(uri.to_s)) && + params[:controller] == 'scrivito/ui' uri.path = params[:application_path] end link_params = {}