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

<oXygen/> general issues.
pault
Posts: 69
Joined: Thu Mar 21, 2013 12:55 am

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

Post by pault » Fri Jan 19, 2018 3:32 am

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

cristi_talau
Posts: 217
Joined: Thu Sep 04, 2014 4:22 pm

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

Post by cristi_talau » Mon Jan 22, 2018 2:27 pm

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

pault
Posts: 69
Joined: Thu Mar 21, 2013 12:55 am

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

Post by pault » Tue Jan 23, 2018 7:55 pm

Thanks Christian.

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

cristi_talau
Posts: 217
Joined: Thu Sep 04, 2014 4:22 pm

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

Post by cristi_talau » Wed Jan 24, 2018 3:28 pm

Hello,

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

Best,
Cristian

Post Reply