Page MenuHomePhabricator

Consider "NEWSECTIONLINK" page prop also during History view, Edit and other non-view actions
Open, LowPublic

Description

On a real talk page, the "New section" link is part of the page's content actions, always. No matter whether one is reading the page, viewing its history, viewing its Page information, editing it, etc.

When using the __NEWSECTIONLINK__ magic word on other discussion pages (e.g. Teahouse, Village Pump, etc.), the link is only shown when reading the page. In other modes, the link disappears from the navigation menu.

Original report from BugZilla by matthew.britton:

Description:
On talk pages, the "new section" tab is shown both when viewing the page and for other actions (e.g. action=edit, action=history). On non-talk pages with NEWSECTIONLINK, the "new section" tab is only shown when viewing the page, not for the other actions. For consistency, it should always be shown.

Details

Reference
bz20177

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:57 PM
bzimport set Reference to bz20177.
bzimport added a subscriber: Unknown Object (MLST).

Things like DISPLAYTITLE have the same issue; since it's tied into the rendered page view, other actions don't have access to the state setting.

(In reply to comment #1)

Things like DISPLAYTITLE have the same issue; since it's tied into the rendered
page view, other actions don't have access to the state setting.

One way to fix it would be to register DISPLAYTITLE and NEWSECTIONLINK in the page_props table.

  • Bug 19440 has been marked as a duplicate of this bug. ***
  • Bug 61857 has been marked as a duplicate of this bug. ***

This is mostly a skin issue, and is not an enhancement (it's a visual confusion).

  • Bug 70848 has been marked as a duplicate of this bug. ***

As workaround is an additional API query necessary:

http://en.wikipedia.org/w/api.php?action=query&titles=Wikipedia:Village_pump_(technical)&prop=pageprops → typeof .pageprops.newsectionlink !== "undefined"

Krinkle renamed this task from "new section" tab added by __NEWSECTIONLINK__ not shown for non-view actions to Consider "NEWSECTIONLINK" page prop also during History view, Edit and other non-view actions.Jun 6 2020, 12:40 AM
Krinkle removed a subscriber: wikibugs-l-list.
Krinkle added a project: Growth-Team.

Tagging Growth team as this might be of interest to them. I can see this affecting new users especially with links sometimes showing and sometimes not.

The information for this is available in the page's properties which can be queried even without needing to deal with a possible-absent ParserOuptut entry.