Skip to content

Markdown preview not found when Issue tracker and Pull requests are disabled #31180

Closed
@jorisdrenth

Description

@jorisdrenth

Description

The wiki markdown editor has an error where the preview gives "Not found" when the Issue tracker and Pull requests are disabled on a repository.

Steps to reproduce:

  • create a repo
  • go to settings
  • uncheck "Enable Repository Issue Tracker" and "Enable Repository Pull Requests" and save the settings
  • go to the wiki tab
  • click "Create the first page"
  • click on "Preview"

You will now see "Not found" in stead of a preview of your markdown.

The browser console will show a 404 on the URL "POST
https://demo.gitea.com/jorisdrenth/issue_test_2/markup"

Gitea Version

1.22

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Debian

How are you running Gitea?

Binary, on a Debian based dedicated VPS.

Database

SQLite

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions