Project

General

Profile

Actions

Defect #20397

open

project:someproject wiki syntax should link to project with identifier "someproject', not name.

Added by Paweł Hikiert almost 9 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Current code tries to match identifier OR name, which can lead to 'mislinks', as described in the first post of this thread: How to get project's numeric id?

I have several projects on Redmine, let's say one of them has identifier "some-identifier-1" and name "project", and the other has identifier "project" and name "project".

I'd like to link to project page (not wiki page!) of project with identifier "project"
[...]
Linking to project:project links to project with identifier "some-identifier-1", because my Redmine (2.4.2.stable from Ubuntu 12.04) code tries to match identifier OR name, and that's the first project it finds.

I propose this patch to take only project's identifier into account when creating wiki links.


Files


Related issues

Related to Redmine - Defect #30256: Cannot make cross-project wiki link if the project name includes square bracketsClosedGo MAEDA

Actions
Actions

Also available in: Atom PDF