rails / website

https://rubyonrails.org/
73 stars 109 forks source link

After opening some links, enter a dead loop #217

Open hhniao opened 10 months ago

hhniao commented 10 months ago

http://localhost:4000/category/news/ http://localhost:4000/community/

<html>
<body>
<!--StartFragment-->
  | <!DOCTYPE html>
-- | --
  | <html lang="en-US">
  | 
  | <title>Redirecting&hellip;</title>
  | <link rel="canonical" href="http://localhost:4000/category/news">
  | <script>location="http://localhost:4000/category/news"</script>
  | <meta http-equiv="refresh" content="0; url=http://localhost:4000/category/news">
  | <meta name="robots" content="noindex">
  | <h1>Redirecting&hellip;</h1>
  | <a href="http://localhost:4000/category/news">Click here if you are not redirected.</a>
  | </html>
  |  

<!--EndFragment-->
</body>
</html>

<html>
<body>
<!--StartFragment-->
  | <!DOCTYPE html>
-- | --
  | <html lang="en-US">
  | 
  | <title>Redirecting&hellip;</title>
  | <link rel="canonical" href="http://localhost:4000/community">
  | <script>location="http://localhost:4000/community"</script>
  | <meta http-equiv="refresh" content="0; url=http://localhost:4000/community">
  | <meta name="robots" content="noindex">
  | <h1>Redirecting&hellip;</h1>
  | <a href="http://localhost:4000/community">Click here if you are not redirected.</a>
  | </html>
  |  

<!--EndFragment-->
</body>
</html>
zzak commented 8 months ago

I've also experienced this on local, but usually I'm not touching those pages so I just forgot about it.

Please investigate and send a PR :bow:

hhniao commented 8 months ago

sorry i dont know rail, im phper. so i cant submit PR.

eatskolnikov commented 7 months ago

PR #255 addresses this issue