TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Why is HN replacing Twitter URLs with canonical URLs requiring login

18 pointsby daveaielloover 1 year ago
Earlier today I submitted a URL from twitter.com because it was the URL for the content that I wanted to share. That URL was rewritten in the form:<p>https:&#x2F;&#x2F;twitter.com&#x2F;i&#x2F;flow&#x2F;login?redirect_after_login....<p>This causes fellow users to have to login to X &#x2F; Twitter to have to view the content&#x2F;tweet.<p>Why is this happening?

5 comments

LinuxBenderover 1 year ago
Does the tweet have a canonical tag in the HTML? Asking because HN will redirect to the canonical name. That&#x27;s why I use an addon to show me if that exists to save me some hassle when I submit URL&#x27;s here. HN seems to ignore canonical for some domains like Youtube video URL&#x27;s. Perhaps that exclusion list needs an update but probably best to email dang to ask.
dataf3lover 1 year ago
I am going to guess hacker news follows the &quot;first&quot; redirect, and this is just x.com being sucky and a piece of asterisk lately.
rsynnottover 1 year ago
Because twitter is broken. This is surely not news, a year in. You may want to submit a nitter link instead.
progneover 1 year ago
For me this is functionally equal to blocking twitter links.
评论 #38227492 未加载
fyokdrigdover 1 year ago
should redirect to nitter instead :shrug