Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid computed reference to image with scope external #3067

Closed
raducoravu opened this issue Sep 12, 2018 · 1 comment
Closed

Invalid computed reference to image with scope external #3067

raducoravu opened this issue Sep 12, 2018 · 1 comment
Labels
bug priority/medium Medium (or unknown) priority issue stale No recent activity. May be closed soon.

Comments

@raducoravu
Copy link
Member

Let's say that in the DITA Map I define a key pointing to an image like this:

  <keydef keys="abc"
           href="/resources/figures/test.png" scope="external" format="png"/>

and then in the DITA topic I refer to the key:

      <image keyref="abc"/>

The HTML equivalent of the topic will contain something like this:

    <img class="image" src="file:/resources/figures/test.png">

so the publishing pre-pends to the original path a "file:" changing the original reference. This is bad because the origina href pointed to the root of the web server where the HTML will be loaded.
Shouldn't the @href attribute value been preserved exactly as it is because if was referenced using scope=external?

imageHref.zip

@robander robander added bug priority/medium Medium (or unknown) priority issue labels Nov 7, 2019
@stale
Copy link

stale bot commented Jan 9, 2022

This issue has been automatically marked as stale because it has not been updated recently. It will be closed soon if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale No recent activity. May be closed soon. label Jan 9, 2022
@stale stale bot closed this as completed Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug priority/medium Medium (or unknown) priority issue stale No recent activity. May be closed soon.
Projects
None yet
Development

No branches or pull requests

2 participants