更好地处理意外将默认服务条款/常见问题/隐私政策添加到 tos_url/faq_url/privacy_url 管理员设置的问题

您好。我的 Discourse 安装一直运行完美,直到几天前。不知为何,突然开始频繁出现“ERR_TOO_MANY_REDIRECTS”错误。

https://imgur.com/BIKE42U

问题并非出在 Cookie 上。我的手机和两台电脑的浏览器上都会出现此问题(当然,我已经清除了 Cookie 和缓存)。奇怪的是,这仅发生在与标题相关的三个页面上,不是吗?论坛的其他部分都运行良好!顺便说一句,感谢你们为这个平台所做的出色工作。

论坛尚未正式对外开放。我们只发出了一些邀请链接,但问题在有任何“外部人员”访问之前就出现了。我提到这一点,只是以防这会引起某些关注……不过我想应该不会。

这三个页面是否与其他页面有关联?它们是否独立于其他页面?我无法理解这种情况。为什么只有这三个页面出错,而论坛的其他部分却正常?

您能否在这方面提供一些帮助?我不知道该从哪里入手……

如果您想尝试访问,这是论坛地址:https://laplazoleta.org/about

I can reproduce this on my site if I set the faq url or tos url site settings to the default FAQ and TOS urls for my site. Can you check your site settings to see if that is causing the problem for you? These settings should be left empty if you want to use the default URLs for these pages.

3 个赞

Oh, @simon, I love you!! I didn’t associate the problem with these settings because the error occurred recently, and I only touched there at the beginning of the installation, about a month ago. I suppose I don’t visit these pages (TOS, FAQ…) often enough!

Thank you very much!

In any case, I think the explanation you can find below the small window where you can enter those values is not very clear. At least, not in Spanish. See:

https://imgur.com/LSQxgFD

It says something like: If you have a document for (privacy policy, TOS, or FAQ) hosted anywhere, put its URL here… But wouldn’t it be better to add “but leave it empty if this URL is at your Discourse installation” or something similar? I assume that by writing just a few more letters, it would be clearer for other clumsy guys—or girls—like me in the future… :stuck_out_tongue_winking_eye:

It’s an idea… Thanks! Gracias!

2 个赞

This might be an error in the translation. In English it says “If you have a Terms of Service document hosted elsewhere that you want to use, provide the full URL here.” That said, maybe Discourse should handle the case when the default URLs get entered into these settings to avoid the ‘too many redirects’ issue.

2 个赞

That’s right! Or maybe, to let it clearer, say: "if the place is at this same installation, let it empty. Otherwise, it can trigger the too many redirects error.

Maybe is too articulated… It can be written simpler and shorter, but the intention, I think it is by this way.

Should we write some tag or maybe write a theme at some category, to make it know to the Discourse Team this should be done, if they think appropriate? Is there a ideas place or something like that?

1 个赞

The best approach would probably be to fix the redirect issue so that entering the default URLs won’t break anything. I’ll move this topic to our ux category so that it doesn’t get lost.

4 个赞

我今天遇到了这个问题。也许可以在描述中添加一个提醒,说明仅在与默认值不同时才添加它。

1 个赞

或者 Discourse 可以处理这种情况。将默认 URL 添加到这些设置中似乎并不过分。

2 个赞