NodeBB with Redactor: Can't Reply Topic Opened in New Tab

Bug Reports
  • #1

    On our site at we continue to use Redactor with NodeBB 1.17.2

    For a logged in user, if you:

    1. Go to the forum
    2. Click a topic to open it
    3. Hit the blue "Reply" button

    Redactor opens fine and you can type your reply, etc.

    But if you

    1. Go to the forum
    2. Right click a topic and say "open in new tab" – which causes the topic to open in a new tab (obviously)
    3. Hit "Reply"

    There is no response.

    This happens on Safari, Chrome and Firefox.

    In both cases the button;s HREF is something like Title

    Why does this work when you go into the topic directly and not work when you open it in a new tab?

    Best Wishes,

  • GNU/Linux

    Hi @mark-coniglio -- it looks like you have some bad javascript added in the footer.tpl

    I see this error on cold load:

    Uncaught TypeError: signupButton is null

    Specifically, these lines added:

    const signupButton = document.querySelector("#logged-out-menu li:nth-child(1) span");
    signupButton.innerHTML = "Register";
    const loginButton = document.querySelector("#logged-out-menu li:nth-child(2) span");
    loginButton.innerHTML = "Login to Forum";

    signupButton can be undefined if it does not exist in the DOM.

Suggested Topics

| | | |