Page MenuHomePhabricator

Link attribute of file: should identify non-existing page
Open, LowPublicFeature

Description

[[File:anything.png|link=non-existing page]] does not tell the target page does not exist as internal link normally does (adding "redlink=1" in the url and "page does not exist" in the popup message.)


Version: unspecified
Severity: enhancement

Details

Reference
bz34463

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:19 AM
bzimport set Reference to bz34463.
bzimport added a subscriber: Unknown Object (MLST).

Is this bug related to the problem reported at [[Wikipedia:Village pump (technical)#Changes to file redlinks in 1.19?]]?

(In reply to comment #1)

Is this bug related to the problem reported at [[Wikipedia:Village pump
(technical)#Changes to file redlinks in 1.19?]]?

no

Also, [[File:anything.png|link=current page]] is preferably to disable its linking as internal link would bold its text and disable its linking if the link target is the same as the current page title.

(In reply to comment #3)

Also, [[File:anything.png|link=current page]] is preferably to disable its
linking as internal link would bold its text and disable its linking if the
link target is the same as the current page title.

Well that is the behaviour of [[ ]] links, given that using link parameter in the file link is so explicit, I'm not sure if this is a good idea.

(In reply to comment #4)

(In reply to comment #3)

Also, [[File:anything.png|link=current page]] is preferably to disable its
linking as internal link would bold its text and disable its linking if the
link target is the same as the current page title.

Well that is the behaviour of [[ ]] links, given that using link parameter in
the file link is so explicit, I'm not sure if this is a good idea.

The file with link attribute is not supposed to be linked to the file description page, so it's ok to disable the link in such circumstance. Also it is consistent with the text internal link behavior.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:14 AM
Aklapper removed a subscriber: wikibugs-l-list.