Defect #20397

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

Added by Paweł Hikiert about 2 years ago. Updated 8 days ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Text formatting
Target version:-
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.

wiki_project_link-trunk_r14445.patch Magnifier (1.9 KB) Paweł Hikiert, 2015-07-23 12:28

History

#1 Updated by Toshi MARUYAMA about 2 years ago

  • Tracker changed from Patch to Defect
  • Category set to Text formatting
  • Target version set to 3.2.0

#2 Updated by Toshi MARUYAMA about 2 years ago

  • Target version deleted (3.2.0)

#3 Updated by Jean Louis over 1 year ago

+1 I have also bug with name, I prefer also to use textual identifier, we don't have access to the numeric id

#4 Updated by Sergey Gribnyak 12 months ago

+1

#5 Updated by Shahaf Ben Ari 8 days ago

Folks, are there any updates?

Also available in: Atom PDF