Module talk:Redirect: Difference between revisions

Content deleted Content added
Section is stripped: reply to Trappist the monk (CD)
Line 161:
:I'm not wholly convinced that there is anything really wrong with the module. [[!!]] is not a redirect page and it doesn't have a section that the <code>#section</code> fragment can link to. [[WikiPedia]] is a redirect to [[Wikipedia]]. The redirect page does not have a section that the <code>#section</code> fragment can link to; because 'WikiPedia' is a redirect, the module correctly returns the target page [[Wikipedia]]. Yeah, the module documentation says: {{tq| If page-name does not exist or is not a redirect then page-name is returned.}} If that is taken literally then perhaps it is broken. The fragments disappear at [[Module:Redirect#L-8|line 8]].
:—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 00:28, 22 February 2022 (UTC)
::@[[User:Trappist the monk|Trappist the monk]]: I apologise if I was unclear with my example, I just typed <code><nowiki>#section</nowiki></code> because I was in a hurry. The example <code><nowiki>{{#invoke:Redirect|main|WikiPedia#History}}</nowiki></code> &rarr; {{#invoke:Redirect|main|WikiPedia#History}} better demonstrates how the section is stripped when the redirect is followed, and likewise, if the page isn't a redirect, the section is still stripped:<br><code><nowiki>{{#invoke:Redirect|main|Wikiedia#History}}</nowiki></code> &rarr; {{#invoke:Redirect|main|Wikipedia#History}}<br>While the module isn't broken ''per se'', it causes a problem at [[WP:AFCRC]] (from {{tl|Request redirect}}), and it would be nice if the module was <s>fixed</s> improved. Thank you for taking the time to respond to my hastily-added examples.&nbsp;&#8213;&nbsp;[[User:Qwerfjkl|<span style="background:#1d9ffc; color:white; padding:5px; box-shadow:darkgray 2px 2px 2px;">Qwerfjkl</span>]][[User talk:Qwerfjkl|<span style="background:#79c0f2;color:white; padding:2px; box-shadow:darkgray 2px 2px 2px;">talk</span>]] 20:44, 22 February 2022 (UTC)