8000 Disqus threads get registered with the local preview URL · Issue #260 · aistomin/aistomin.com · GitHub
[go: up one dir, main page]

Skip to content

Disqus threads get registered with the local preview URL #260

In progress

Description

@aistomin

Problem

Links to a blog post in Disqus notification emails and in the Disqus moderation panel point to http://0.0.0.0:4000/... instead of https://aistomin.com/.... Seen on "Goethe-Zertifikat C1 — My Experience, Part III: What's Next?".

_layouts/post.html passes the thread address to Disqus as {{ site.url }}{{ page.url }}. In production this renders correctly, but jekyll serve in development replaces site.url with http://0.0.0.0:4000. The thread identifier is the same in both environments, so loading the comments on the local server talks to the real production thread. Disqus stores the URL it sees when a thread is first created, so a post whose comments are first loaded locally keeps the local address.

The e2e specs click "Load comments" on every local run, so each new post is almost guaranteed to be registered with the local URL before it is published.

Proposal

  • Give disqus_config a fixed production address that does not depend on site.url, e.g. a dedicated value in _config.yml, so the local server sends the same URL as production.
  • Add an e2e assertion that the rendered disqus_config URL starts with https://aistomin.com, whatever the environment.
  • Manually correct the stored URL of the affected threads in the Disqus admin (Discussions), and check the other two Goethe posts.

Please read how to contribute

Activity

  1. added this to the Version 1.2 milestone on Nov 30, 2026
  2. self-assigned this
    on Nov 30, 2026
  3. added a commit that references this issue on Dec 3, 2026
  4. aistomin commented on Dec 3, 2026

    @aistomin
    OwnerAuthor

    The code fix is in #262. This issue stays open until the stored thread URLs are verified.

    On 2026-12-03 a URL map was uploaded in the Disqus admin (Migration Tools → URL mapper) for the three live threads. Disqus says the migration can take up to 24 hours.

    To check on 2026-12-04

    Open Discussions and confirm these threads link to https://aistomin.com/... instead of http://0.0.0.0:4000/...:

    • 10811333540 — https://aistomin.com/2025/12/07/goethe-c1-whats-next.html
    • 10786419473 — https://aistomin.com/2025/11/25/goethe-c1-preparations.html
    • 10770623303 — https://aistomin.com/2025/11/19/goethe-c1-exam.html
    • The next comment notification email links to aistomin.com.

    The other threads in the list belong to deleted posts or to drafts with an older date, are no longer loaded by any page, and are left as they are.

    If the links have not changed, the migration did not match and the URLs have to be corrected another way.

  5. added a commit that references this issue on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    0