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

Oxygen general issues.
pault
Posts: 70
Joined: Thu Mar 21, 2013 12:55 am

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

Post 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
cristi_talau
Posts: 496
Joined: Thu Sep 04, 2014 4:22 pm

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

Post 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
pault
Posts: 70
Joined: Thu Mar 21, 2013 12:55 am

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

Post by pault »

Thanks Christian.

Another thing you might want to consider when making the improvement is to also offer the selection of https://
cristi_talau
Posts: 496
Joined: Thu Sep 04, 2014 4:22 pm

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

Post by cristi_talau »

Hello,

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

Best,
Cristian
Post Reply