#217 Code browser: HTTP code 404 when I click on a submodule directory which is the wiki repository of the project

Open
opened 1 month ago by ncc1988 · 0 comments
ncc1988 commented 1 month ago

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.

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.
hw added the
bug
label 1 month ago
hw added the
gitea-related issue
label 1 month ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.