TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

FYI: Facebook is breaking shared links

10 点作者 colinsidoti将近 13 年前
If you share a link on Facebook with a query string, Facebook automatically strips the equals sign out of any empty parameters. IE:<p>'ship_id=19&#38;region_id=&#38;duration=&#38;embark_id=15&#38;debark_id=&#38;depart_start=&#38;depart_end='<p>Becomes: 'ship_id=19&#38;region_id&#38;duration&#38;embark_id=15&#38;debark_id&#38;depart_start&#38;depart_end'<p>I think this is effectively altering standard browser behavior.<p>This also breaks my rails app, which is unfortunate. Looking for a solution on that front, but thought I should make people aware of this asap.

1 comment

colinsidoti将近 13 年前
Fixing my app was easy. I was checking for empty? but now I'm checking for nil? or empty?<p>I still think it's weird Facebook would do this.
评论 #4202439 未加载
评论 #4206665 未加载