Site Stuff Forum

Site Stuff Forum

Let's get meta.

Poll Link Bug when Not on Site Root

0 HS
BuckeyeFanInBoulder's picture
September 27, 2019 at 9:55pm
0 Comments

In a few cases I get a 404 when clicking poll widget comments link. This appears to be specific to pages deeper than home/root.

Steps to repro:

  1. open an incognito window or log out to see a poll you haven't voted for
  2. Navigate away from the home page, such as https://www.elevenwarriors.com/forum/college-sports/2019/09/107196/93019...
  3. Click the Comments link in the poll on the right sidebar
  4. Notice you get a 404. Url is https://www.elevenwarriors.com/forum/college-sports/2019/09/107196/polls... instead of https://www.elevenwarriors.com/polls/2019/09/excluding-ohio-state-which-...

window.location.pathname is included when it shouldn't be (i.e. /forum/college-sports/2019/09/107196 in the above example)

This is a forum post from a site member. It does not represent the views of Eleven Warriors unless otherwise noted.