https://bugzilla.wikimedia.org/show_bug.cgi?id=24343

--- Comment #8 from MZMcBride <b...@mzmcbride.com> 2010-10-05 06:58:47 UTC ---
(In reply to comment #7)
> Since Title has two functions, I though we could have two magic words as well.
> 
> One possibility was to map {{localurl:}} with Title::getLinkUrl()  instead of
> Title::getLocalURL(), but that looks weird and inconsistent.

I think you should re-read the opening post. :-)

"{{localurl:User:Bob#section}}" returns "/wiki/User:Bob". This is wrong. This
is the bug. Instead, "{{localurl:User:Bob#section}}" should return
"/wiki/User:Bob#section", just like {{fullurl:}} does currently. (And
"{{localurl:User:Bob#section|action=edit}}" should return
"/w/index.php?title=User:Bob&action=edit#section".)

I can't see any reason {{localurl:}} would intentionally strip the section
anchor.

If there are use-cases for other magic words, I think they should be the topic
of other bugs. This one is about {{localurl:}} stripping the section anchor
needlessly and unexpectedly.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to