Page MenuHomePhabricator

GrowthExperiments question poster fails to work when the route gets stuck in the URL
Open, Needs TriagePublic

Description

Steps to reproduce:

  • visit Special:Homepage
  • click on "Ask your mentor a question"
  • reload page
  • click on "Ask your mentor a question" again

the dialog will fail to come up.

When the dialog first opens, it sets the route to #/homepage/mentorship/question. Presumably, if the dialog is closed without removing that route (e.g. by reloading, or by closing and reopening the browser), on the next button click the route will be set to its current value, won't trigger an URL change event, and so won't trigger the dialog display handler.

Either the dialog should not use the router, or it should be able to open automatically when a page is loaded with the dialog route in the URL.

(Only happens with the mentorship panel help button. The help panel is not affected as route handling is done differently there.)