In one project, I added the wiki repository as submodule in the main repository to have a convenient way of updating the documentation. When I browse the code in the code view and click on the directory that has the wiki repository as submodule, I get an 404 error. This is because the wiki repository is not a “real” project of its own.
This is the project: https://codeberg.org/moenavigator/moenavigatorengine
The “doc” folder is the wiki repository as submodule.
A solution to prevent such 404 errors could be to check if the submodule URL is basically the URL of the project repository with “.wiki” added to it. In that case, the code browser could redirect to the project wiki. In the case that a project added the URL of another project on the same domain the code browser could redirect to the other project’s wiki.