[Oxygen Webhelp] External links are treated as internal in T

Having trouble installing Oxygen? Got a bug to report? Post it all here.
colinm
Posts: 28
Joined: Wed May 26, 2010 7:05 pm

[Oxygen Webhelp] External links are treated as internal in T

Post 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!
Colin Maudry
Enterprise documentation analyst and Open Data specialist
Rennes, France
Tweets at @CMaudry
colinm
Posts: 28
Joined: Wed May 26, 2010 7:05 pm

Re: [Oxygen Webhelp] External links are treated as internal

Post by colinm »

Apart from this issue, I must say the WebHelp looks very good and the comment system is easy to set up. Congratulations!
Colin Maudry
Enterprise documentation analyst and Open Data specialist
Rennes, France
Tweets at @CMaudry
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: [Oxygen Webhelp] External links are treated as internal

Post 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.
colinm
Posts: 28
Joined: Wed May 26, 2010 7:05 pm

Re: [Oxygen Webhelp] External links are treated as internal

Post by colinm »

Great!
Colin Maudry
Enterprise documentation analyst and Open Data specialist
Rennes, France
Tweets at @CMaudry
colinm
Posts: 28
Joined: Wed May 26, 2010 7:05 pm

Re: [Oxygen Webhelp] External links are treated as internal

Post 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
Colin Maudry
Enterprise documentation analyst and Open Data specialist
Rennes, France
Tweets at @CMaudry
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: [Oxygen Webhelp] External links are treated as internal

Post 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.
Regards,
Sorin

<oXygen/> XML Editor Support
colinm
Posts: 28
Joined: Wed May 26, 2010 7:05 pm

Re: [Oxygen Webhelp] External links are treated as internal

Post 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
Colin Maudry
Enterprise documentation analyst and Open Data specialist
Rennes, France
Tweets at @CMaudry
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: [Oxygen Webhelp] External links are treated as internal

Post 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?
Regards,
Sorin

<oXygen/> XML Editor Support
Post Reply