Skip to content

Trailing slash in URL affects vote count but not post link. #3

@brenns10

Description

@brenns10

I have a button on an article that is showing an incorrect vote count. Strangely, it still links to the correct HN discussion page. I wanted to see what the issue was, so I went to hn-button.com and pasted the link into the page into the URL box, and got the same result (incorrect vote count, but correct link). On a whim, I removed the trailing slash in the URL, and the vote count became correct! The funny thing is, I checked the HN submission, and I'm pretty sure that the link I posted also contained the trailing slash.

Not sure what might cause something like this, but I thought you might be interested in this oddity. Here is the URL for convenience if you want to try pasting into hn-button.com yourself:

http://stephen-brennan.com/2015/08/30/why-you-should-hire-cs-majors/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions