lib/scrivito/link.rb in scrivito_sdk-1.6.0.rc1 vs lib/scrivito/link.rb in scrivito_sdk-1.6.0.rc2
- old
+ new
@@ -177,9 +177,10 @@
str << "##{fragment}" if fragment.present?
str
end
def internal_url
+ raise 'Called #internal_url on an external link!' if external?
"objid:#{obj.id}"
end
def to_cms_api_html_url
if internal?