In XML Editor 19.1, build 2017121318 (Author mode), how do I turn off the insertion of http:// when using Web Link?
This feature causes broken links. We insert the relative URL (which allows the URL to be generated for different domains). For example: /en/dseGraphFluent.html, which is rendered as "<xref href="http:///en/dseGraphFluent.html" format="html" scope="external">
Thanks,
Paul
Turn off auto insertion of http:// in Web Link
-
- Posts: 311
- Joined: Thu Sep 04, 2014 4:22 pm
Re: Turn off auto insertion of http:// in Web Link
Hello,
I registered an internal improvement request for the "Insert Web Link" action. We will update this forum post when we release the improvement.
Meanwhile, you can replace the "Insert Web Link" action with one that does not add "http://" using the "Preferences" [1] dialog. Go to "Document Type Associations", and edit the "DITA" framework [2]. In the "Author" [3] tab, the "Actions" [4] sub-tab, edit the action with ID insert.url.reference [5].
Use the Operation: ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation
And set the "fragment" argument to
Best,
Cristian
[1] https://www.oxygenxml.com/doc/versions/ ... ences.html
[2] https://www.oxygenxml.com/doc/versions/ ... ation.html
[3] https://www.oxygenxml.com/doc/versions/ ... r-tab.html
[4] https://www.oxygenxml.com/doc/versions/ ... b-tab.html
[5] https://www.oxygenxml.com/doc/versions/ ... ion-dialog
I registered an internal improvement request for the "Insert Web Link" action. We will update this forum post when we release the improvement.
Meanwhile, you can replace the "Insert Web Link" action with one that does not add "http://" using the "Preferences" [1] dialog. Go to "Document Type Associations", and edit the "DITA" framework [2]. In the "Author" [3] tab, the "Actions" [4] sub-tab, edit the action with ID insert.url.reference [5].
Use the Operation: ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation
And set the "fragment" argument to
Code: Select all
<xref href="${ask('Please provide the URL')}" scope="external" format="html"></xref>
Cristian
[1] https://www.oxygenxml.com/doc/versions/ ... ences.html
[2] https://www.oxygenxml.com/doc/versions/ ... ation.html
[3] https://www.oxygenxml.com/doc/versions/ ... r-tab.html
[4] https://www.oxygenxml.com/doc/versions/ ... b-tab.html
[5] https://www.oxygenxml.com/doc/versions/ ... ion-dialog
Re: Turn off auto insertion of http:// in Web Link
Thanks Christian.
Another thing you might want to consider when making the improvement is to also offer the selection of https://
Another thing you might want to consider when making the improvement is to also offer the selection of https://
-
- Posts: 311
- Joined: Thu Sep 04, 2014 4:22 pm
Re: Turn off auto insertion of http:// in Web Link
Hello,
Thanks for the suggestion. It's a good idea. I noted it.
Best,
Cristian
Thanks for the suggestion. It's a good idea. I noted it.
Best,
Cristian