Project

General

Profile

Actions

Defect #17511

closed

Wiki URL 404 when using markdown

Added by Jakob Gillich over 10 years ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Wiki
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Wont fix
Affected version:

Description

I configured Redmine to use markdown for text input. On my main wiki page, I added a link:

[API](api)

Which renders to:

<a class="external" href="api">API</a>

But when I'm on the main page, it points to `projects/PROJECT/api` instead of `projects/PROJECT/wiki/api`, thus giving me a 404 when clicked.

Environment:
Redmine version 2.5.2.stable
Ruby version 2.0.0-p353 (2013-11-22) [x86_64-linux]
Rails version 3.2.19
Environment production
Database adapter Mysql2

Actions #1

Updated by Toshi MARUYAMA over 10 years ago

  • Category set to Text formatting
Actions #2

Updated by Toshi MARUYAMA over 10 years ago

  • Category changed from Text formatting to Wiki
Actions #3

Updated by Frank Delahoyde over 10 years ago

I see the same behavior with Redmine configured to use the ckeditor plugin for text input.

Environment:
Redmine version 2.5.2.stable
Ruby version 2.0.0-p353 (2013-11-22) [x86_64-linux]
Rails version 3.2.19
Environment production
Database adapter PostgreSQL

Actions #4

Updated by Frank Delahoyde over 10 years ago

Looking a little further, this behavior doesn't seem to persist if you rename the Start page to something other than Wiki.

Actions #5

Updated by Frank Delahoyde over 10 years ago

But you need to leave the Start page as "Wiki" in Settings=>Wiki for the project or it breaks again.

Actions #6

Updated by Holger Just about 1 month ago

  • Status changed from New to Closed
  • Resolution set to Wont fix

Regular relative links (like those which can be generated by markdown or Textile) are always resolved by the web browser in relation to the current URL. These links are deliberately not post-processed as they are often used deliberately.

When linking to Wiki pages, you should instead use the direct syntax to create a full href:

[[api|API]]

This will generate an absolute(ish) link which will always point to the specific wiki page, such as

<a class="wiki-page" href="/projects/redmine/wiki/Api">API</a>
Actions

Also available in: Atom PDF