Recently I have faced one issue with Sitecore 8 update 3. If you are using General Link field type and choose insert internal link then the target attribute will not be correctly set. Insert link popup window gives three options in target window dropdown list:
If you select Active Browser then your target attribute will be rendered as “Active Browser”
Active Browser:
Now insert link popup window gives four options in target window dropdown list:
If you select Active Browser then your target attribute will be rendered as “Active Browser”
<a href="/BlogPage" target="Active Browser">Blog Title</a>If you select New Browser then your target attribute will be rendered as “New Browser”
<a href="/BlogPage" target="New Browser">Blog Title</a>It means that target attribute is not rendering properly. Correct way of rendering is:
Active Browser:
<a href="/BlogPage">Blog Title</a>New Browser:
<a href="/BlogPage" target="_blank">Blog Title</a>The easiest solution to fix this bug is update Root field value of item {ABF3B317-CFCA-441A-815A-F810AB1EDB0D} or /sitecore/client/Applications/Dialogs/InsertLinkViaTreeDialog/PageSettings/TargetsSearchPanelConfig in Core database. Update the existing value sitecore/client/Applications/Dialogs/InsertLinkViaTreeDialog/PageSettings/Targets to sitecore/client/Business Component Library/System/Texts/Targets
Now insert link popup window gives four options in target window dropdown list:
- SelectTarget : Opens the linked document in the same frame as it was clicked (this is default).
<a href="/BlogPage">Blog Title</a>
- _blank : Opens the linked document in a new window or tab.
<a href="/BlogPage" target="_blank">Blog Title</a>
- _parent : Opens the linked document in the parent frame.
<a href="/BlogPage" target="_parent">Blog Title</a>
- _top : Opens the linked document in the full body of the window.
<a href="/BlogPage" target="_top">Blog Title</a>
0 comments :
Post a Comment