Expand my Community achievements bar.

Stop Guides from rewriting href

Avatar

Level 1

Hi,

 

I have this source xml in a ditamap to be imported into Guides:

            <topicref format="href" href="/app-catalog/example" scope="external">
               <topicmeta>
                  <linktext>Example text</linktext>
               </topicmeta>
            </topicref>

 

This content is not being built to AEM Sites, it goes to an another site in which the above href is a valid link.

When this xml is uploaded the href is rewritten into an invalid GUID reference, like this:

href="GUID-1cf61ad8-ca1b-4219-995b-1f84a98aae70-en.dita"

 

If I try to edit the href and put it back to the correct url, it rewrites it to this:

href="../../../../../../../../app-catalog/example"

 

I tried adding "data:" or "http:/" at the beginning of the link and then Guides leaves it alone.

 

Is it possible to tell Guides to also ignore links that start with /app-catalog? I tried adding "/app-catalog" to the Special Prefixes in the Day CQ Link Checker Service, but that made no difference.

1 Reply

Avatar

Level 6

Hi @darrylp28648445 

<topicref format="href" href="%2Fapp-catalog%2Fexample" scope="external"> <topicmeta> <linktext>Example text</linktext> </topicmeta> </topicref>

If the other application supports URL encoding and can handle the encoded value in the href attribute, then this workaround should work.