requarks / wiki

Wiki.js | A modern and powerful wiki app built on Node.js
https://js.wiki
GNU Affero General Public License v3.0
24.33k stars 2.69k forks source link

Pages in sidebar and "Go Home" link aren't redirecting properly on remote hosts. #604

Closed apseftis86 closed 6 years ago

apseftis86 commented 6 years ago

Actual behavior

When accessing pages on remote hosts clicking on the pages in the sidebar will redirect me to 127.0.0.1/login and when encountering the "Go Home" link on an incorrect page it will directly to 127.0.0.1 instead of the home screen.

Expected behavior

Obviously they should go to the correct places. (Side note: my webpage knowledge is pretty basic)

So, I am very new to what I am doing and my company already is using Wiki.js (it's not fully working for them so I am trying to help fix it).

I have set my my reverse proxy which works for most things. I can browse my settings, users, change the color scheme. But when looking into the code the things that redirect properly are written "href=/home" or some other /word. Things that are redirecting improperly are written "href=127.0.0.1". I don't know if this is just a problem with having the reverse proxy linking to the local host or if I and doing something wrong.

Like I said, on other machines the page shows up correctly, and I can even navigate to some features. If I am sent to a 127.0.0.1/something page if I go back and retype https://mydomain.name/something it will pull up the correct page.

I have tried all I can look up for how to redirect those links properly and nothing I have looked up has helped me.

I would really appreciate some help from here or perhaps if someone can link me to another forum where my question would be more appropriate.

apseftis86 commented 6 years ago

Solved