/
External pages have internal URL in Content Blocks [5.2.2-B1]
External pages have internal URL in Content Blocks [5.2.2-B1]
Categories/sections in Admin Console can:
- represent page on this website
- represent a shortcut to page on another website
Latter are called "external pages". When attempting to place link to external page in a content block, then:
- URL to that page still shows internal url
- link in content block would point to internal url
For example, when external page to "http://www.google.com" website was created, that has internal url as "/sub-menu/external-page.html", then this internal URL is shown instead of correct one:
Then only place, where correct link is built is in website menu.
Solution
- when showing internal page dropdown replace page url with external one, when appropriate
- when replacing @@5545@@ constructs (internal representation of page link) in content blocks, then use "id:555" instead of template name for virtual pages (that don't have matching template on disk)