Solved [solved] duplicate url when logging in

  • Hi, I have just installed nodedb, and I noticed when I login I am getting this error:

    Not Found
    You seem to have stumbled upon a page that does not exist. Return to the home page.

    When I look at the URL bar, it says:

    So it seems after logging in, its putting the URL twice for some reason, I checked my URL setting in the settings and its correct. I also checked the config.json file and its correct.

    It happens all the time when logging in

    Any ideas?


  • GNU/Linux

    Update your config.json.

    If config.json does not match the URL you are using, the redirect does this.


  • My config.json matches though, that is what I am not understanding why its doing this.



    [email protected]:~/nodebb$ cat config.json
        "url": "",
        "secret": "2549a47a-cfe7-********",
        "database": "mongo",
        "mongo": {
            "host": "",
            "port": "27017",
            "username": "nodebb",
            "password": "*********",
            "database": "nodebb",
            "uri": ""
        "port": "4567"

  • @dcook no, your url value in config.json does not match the url at which you access your site. In config.json, you have the port :4567 appended at the end of it. Remove that. Then restart and try again.

  • That is the port nodebb is using though, is that not important?
    During the setup it defaulted to that port

  • @dcook the port in the url value doesn't tell nodebb what port to listen on, that's what the port property is for. The port in the url value is only important if you access your site on a non-standard port. That is, the url showing up in your browser shows a port after the domain name.

    As we've already said. The url value in config.json should be set to exactly the url that shows up in your browser's address bar when you access the site.

  • @PitaJ Perfect, that solved it, thank you for the more information, I didn't realize it was referring to the port as well.

    You can mark this as resolved!

Suggested Topics

| | | |