Page 1 of 1
[Oxygen Webhelp] External links are treated as internal in T
Posted: Sun Sep 07, 2014 4:43 pm
by colinm
Hello!
Here is the Webhelp that I publish:
http://colin.maudry.com/dita-rdf
In the TOC, I expected two links to be external:
But they are prefixed with a '#" that makes them relative to the root of the page.
In the source DITA:
Code: Select all
<topicref format="zip" href="https://github.com/ColinMaudry/dita-rdf/blob/master/dita2rdf/dita2rdf-ditaot-plugin.zip" navtitle="Download link (zip)" scope="external"/>
[...]
<topicref format="html" href="http://www.github.com/ColinMaudry/dita-rdf" navtitle="Source code (Github)" scope="external"/>
https://github.com/ColinMaudry/dita-rdf ... df.ditamap
Isn't @scope="external" supposed to avoid the links to be manipulated?
Thanks!
Re: [Oxygen Webhelp] External links are treated as internal
Posted: Sun Sep 07, 2014 4:47 pm
by colinm
Apart from this issue, I must say the WebHelp looks very good and the comment system is easy to set up. Congratulations!
Re: [Oxygen Webhelp] External links are treated as internal
Posted: Mon Sep 08, 2014 5:08 pm
by sorin_ristache
Hi Colin,
colinm wrote:In the TOC, I expected two links to be external:
. . .
Isn't @scope="external" supposed to avoid the links to be manipulated?
Yes,
@scope="external" should open the target page in a new browser tab/window without changing the
href value. The problem is already fixed for the next version of Oxygen (version 16.1) which we will release probably in less than a month.
Re: [Oxygen Webhelp] External links are treated as internal
Posted: Mon Sep 08, 2014 5:37 pm
by colinm
Great!
Re: [Oxygen Webhelp] External links are treated as internal
Posted: Tue Oct 07, 2014 11:29 pm
by colinm
Hello,
I've just installed Oxygen 16.1 (2014100319) and republished the WebHelp, but the issue is still there. No visible change.
The DITA source is here:
https://github.com/ColinMaudry/dita-rdf ... tation/src
Thanks,
Colin
Re: [Oxygen Webhelp] External links are treated as internal
Posted: Wed Oct 08, 2014 10:44 am
by sorin_ristache
Hello,
colinm wrote:In the TOC, I expected two links to be external:
But they are prefixed with a '#" that makes them relative to the root of the page.
I can't get the problem in version 16.1. The external links work correctly because they are not modified in the Webhelp pages. I tested with
the dita-rdf.ditamap DITA map. Did you test with other map in Oxygen 16.1? If yes please
send the DITA map that you used. If no please
send a copy of your output Webhelp pages.
Re: [Oxygen Webhelp] External links are treated as internal
Posted: Fri Oct 10, 2014 10:06 pm
by colinm
Hi Sorin,
Thanks for taking the time to try to reproduce the issue.
However, I confirm I still have the issue. I have tried several times, I still get the same relative URL in the Web page. I've even loaded them in a local XAMP, browsinf without cache.
What is curious is that in index.html, index_frames.html and toc.html, the paths are right, absolute. However, when opened in a browser, the links are relative.
Does the Javascript touches the @href in the page?
You can find a zip of the filed deployed at
http://colin.maudry.com/dita-rdf/ here:
http://colin.maudry.com/share/dita-rdf.zip. I have removed my password from config.php.
Summary: the HTML files look good, but once loaded, the links become relative

I've tried with Firefox and IE 11.
Colin
Re: [Oxygen Webhelp] External links are treated as internal
Posted: Mon Oct 13, 2014 11:20 am
by sorin_ristache
colinm wrote:Summary: the HTML files look good, but once loaded, the links become relative

I've tried with Firefox and IE 11.
Once loaded you have this in the main HTML file in your output WebHelp pages:
Code: Select all
<a href="#https://github.com/ColinMaudry/dita-rdf/blob/master/dita2rdf/dita2rdf-ditaot-plugin.zip">Download link (zip)</a>
. . .
<a href="#https://www.github.com/ColinMaudry/dita-rdf">Source code (Github)</a>
but I have this in the WebHelp pages that I created in Oxygen 16.1 (build 2014100319) from
these DITA XML sources:
Code: Select all
<a target="_blank" href="https://github.com/ColinMaudry/dita-rdf/blob/master/dita2rdf/dita2rdf-ditaot-plugin.zip">Download link (zip)</a>
. . .
<a target="_blank" href="https://www.github.com/ColinMaudry/dita-rdf">Source code (Github)</a>
What DITA XML sources did you use? Where can I get them?
What Oxygen 16.1 build number did you use?