Following links to inexistent Wiki pages redirect to the list of pages #10626

Open
opened 2025-11-02 09:13:13 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @khorben on GitHub (Apr 10, 2023).

Description

When following links to inexistent wiki pages, Gitea automatically redirects to the list of pages (e.g., https://try.gitea.io/khorben/test-for-wiki/wiki/?action=_pages). It would make more sense to link to a web page allowing the creation of the corresponding wiki page directly instead (e.g., https://try.gitea.io/khorben/test-for-wiki/wiki?title=Test&action=_new). An indication whether a page with that same name already exists could help comfort the user in the process of creating the page. Alternatively, the "Title" field could be changed to read-only when provided in the URL directly.

Screenshots

image

Gitea Version

1.16.9

Can you reproduce the bug on the Gitea demo site?

Yes

Operating System

NetBSD 9.3_STABLE (GENERIC) pkgsrc-2022Q4 (from source, system service)

Browser Version

Safari 16.3

Originally created by @khorben on GitHub (Apr 10, 2023). ### Description When following links to inexistent wiki pages, Gitea automatically redirects to the list of pages (e.g., <https://try.gitea.io/khorben/test-for-wiki/wiki/?action=_pages>). It would make more sense to link to a web page allowing the creation of the corresponding wiki page directly instead (e.g., <https://try.gitea.io/khorben/test-for-wiki/wiki?title=Test&action=_new>). An indication whether a page with that same name already exists could help comfort the user in the process of creating the page. Alternatively, the "Title" field could be changed to read-only when provided in the URL directly. ### Screenshots ![image](https://user-images.githubusercontent.com/1081724/230983338-8eafce75-be68-424b-9abd-9e62b6b59511.png) ### Gitea Version 1.16.9 ### Can you reproduce the bug on the Gitea demo site? Yes ### Operating System NetBSD 9.3_STABLE (GENERIC) pkgsrc-2022Q4 (from source, system service) ### Browser Version Safari 16.3
GiteaMirror added the topic/uitype/bug labels 2025-11-02 09:13:13 -06:00
Author
Owner

@yardenshoham commented on GitHub (Apr 10, 2023):

Maybe a 404 would make more sense

@yardenshoham commented on GitHub (Apr 10, 2023): Maybe a 404 would make more sense
Author
Owner

@khorben commented on GitHub (Apr 10, 2023):

The behaviour I described here, i.e. offering a web page allowing the creation of the corresponding wiki page directly, is what Redmine does in its own Wiki. IMHO this is what makes the most sense.

@khorben commented on GitHub (Apr 10, 2023): The behaviour I described here, i.e. offering a web page allowing the creation of the corresponding wiki page directly, is what Redmine does in its own Wiki. IMHO this is what makes the most sense.
Author
Owner

@wxiaoguang commented on GitHub (Apr 11, 2023):

Hmm ... I also agree with the author's proposal, many wiki systems have the same behavior, it makes creating new pages easier.

@wxiaoguang commented on GitHub (Apr 11, 2023): Hmm ... I also agree with the author's proposal, many wiki systems have the same behavior, it makes creating new pages easier.
Author
Owner

@lunny commented on GitHub (Apr 11, 2023):

Looks like your version is too low. Could you try a higher Gitea version?

@lunny commented on GitHub (Apr 11, 2023): Looks like your version is too low. Could you try a higher Gitea version?
Author
Owner

@wxiaoguang commented on GitHub (Apr 11, 2023):

Looks like your version is too low. Could you try a higher Gitea version?

This is a feature request, latest Gitea doesn't have this feature either.

@wxiaoguang commented on GitHub (Apr 11, 2023): > Looks like your version is too low. Could you try a higher Gitea version? This is a feature request, latest Gitea doesn't have this feature either.
Author
Owner

@HesterG commented on GitHub (Apr 12, 2023):

A tricky case:
If there is no "Home" wiki page, but page is redirected to {{.RepoLink}}/wiki (e.g., after a wiki page is deleted).
How should we discriminate this redirect behavior from inexistence of "Home" page, or we just redirect to create page with "Home" as title for both cases?

Checked github, looks like they don't let user delete "Home" page of wiki once created
截屏2023-04-12 15 12 09

And the way to delete "Home" page of wiki on github is to rename the page to something else and then delete it.

@HesterG commented on GitHub (Apr 12, 2023): A tricky case: If there is no "Home" wiki page, but page is redirected to `{{.RepoLink}}/wiki` (e.g., after a wiki page is deleted). How should we discriminate this redirect behavior from inexistence of "Home" page, or we just redirect to create page with "Home" as title for both cases? Checked github, looks like they don't let user delete "Home" page of wiki once created <img width="1360" alt="截屏2023-04-12 15 12 09" src="https://user-images.githubusercontent.com/17645053/231380368-baa1721f-4714-45ac-8802-2a7b2ed73a48.png"> And the way to delete "Home" page of wiki on github is to rename the page to something else and then delete it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10626