Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base_url ignored on login page #200

Closed
yevgenkrylov opened this issue Jul 11, 2017 · 6 comments
Closed

base_url ignored on login page #200

yevgenkrylov opened this issue Jul 11, 2017 · 6 comments

Comments

@yevgenkrylov
Copy link

yevgenkrylov commented Jul 11, 2017

I am running raneto 0.13.0 in a docker container with Apache as a reverse proxy on the host machine.

Initially I had issues with loading css stylesheets and js scripts, but after setting correct base_url in the config.default.js file all pages started to render normally , except the login page.

Here I see a lot of 404 errors and in the source code of loaded login page base_url was not prepended to the *.css and *.js files, so login page is not functional.

I checked, {{config.base_url}} is in the login.html template, but for some reason it is ignored.

Please help.

@yevgenkrylov
Copy link
Author

yevgenkrylov commented Jul 11, 2017

Ok, found this article and after adding
config : config,
in the "login_page.route.js" file login page loads without any 404 errors, but the login button is not working:
POST https://example.com/rn-login 404 (Not Found)

Again, it should be https://example.com/help/rn-login - digging further....

PS: my base_url is: 'https://example.com/help'

@yevgenkrylov
Copy link
Author

Updated 'themes/default/public/scripts/login.js' with:
$.post('./rn-login', $(this).serialize(), function (data) {
and now can authenticate, but then raneto redirects to the / - again without the base_url prepend

Edit doesn't work as well...

Will probably have to go with a sub-domain option, until it's properly fixed....

@vitorsomenzi
Copy link

vitorsomenzi commented Sep 22, 2017

Do you have any update on this question? I have the same issue and haven't figure out a solution.

@r0binary
Copy link

r0binary commented May 5, 2018

Same issue here. Raneto running behind an nginx reverse proxy. Login won't work as expected using the correct base_url

@GrahamDumpleton
Copy link
Contributor

This issue is hopefully addressed by PR #280.

@ryanlelek
Copy link
Owner

Closing due to Graham's PR.
Please reopen if the issue continues.

Thanks Graham!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants