Page 1 of 1

Turn off auto insertion of http:// in Web Link

Posted: Fri Jan 19, 2018 3:32 am
by pault
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

Re: Turn off auto insertion of http:// in Web Link

Posted: Mon Jan 22, 2018 2:27 pm
by cristi_talau
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

Code: Select all

<xref href="${ask('Please provide the URL')}" scope="external" format="html"></xref>
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

Re: Turn off auto insertion of http:// in Web Link

Posted: Tue Jan 23, 2018 7:55 pm
by pault
Thanks Christian.

Another thing you might want to consider when making the improvement is to also offer the selection of https://

Re: Turn off auto insertion of http:// in Web Link

Posted: Wed Jan 24, 2018 3:28 pm
by cristi_talau
Hello,

Thanks for the suggestion. It's a good idea. I noted it.

Best,
Cristian