Asciidoc inter document cross reference rendered in .html instead of .adoc
This issue is referenced with https://gitlab.com/gitlab-org/gitlab-ce/issues/17602 but I don't now how to reopen it. Here I provide more necessary info about this issue.
Summary
If asciidoctor file contains inter document cross reference (reference to another .adoc file in repository) it renders this link with .html suffix instead of .adoc suffix. This cause 404 Not Found when you click this link.
Steps to reproduce
Create a README.adoc file and paste this content
= Test links
ifdef::env-github,env-browser[:outfilesuffix: .adoc]
link:refme{outfilesuffix}[link_example2]
Example Project
A lot of detailed info inside this repo file:
https://gitlab.com/nailgilaziev/testasciidoc/blob/master/README.adoc
And same file in github with correct behavior:
https://github.com/nailgilaziev/testadoc/blob/master/README.adoc
What is the current bug behavior?
After pressing a link browser try to open a file refme.html(not exist) instead of refme.adoc(exist). And after that 404 Not Found shown.
What is the expected correct behavior?
When ifdef::env-github,env-browser[:outfilesuffix: .adoc]
exist - inter document cross reference must be rendered with .adoc suffix.
Or automatically do it like in github without this ifdef code line details here
Output of checks
This bug happens on GitLab.com check out my example repo.