Redirects and Polls
Poll Display is not updated on redirect
Sorry, guys, but this one just occurred to me because it's not obvious. Normally, a redirect article will load the poll for the target article... however, if the starting tab (the tab called by the URL) is not the Article tab, all bets are off.
This occurs because the redirect only occurs when the Article tab is selected. So if we start on say, the History tab, the Poll data will be loaded for the redirect article and not the target article.
Then, four things can happen when we select the Article tab and it (now) loads the redirect via AJAX:
- The current article had no poll, and the target article has no poll. No problem.
- The current article had no poll, and the target article does. Not updated.
- The current article had a poll, and the target article does not. Not updated.
- The current article had a poll, and the target article had a different poll. Not updated.
While we were planning on adding a Poll tab as an optional 3rd position, we still need to rewrite the way polls are handled for the other 2 positions.