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

"Go to site home page" and "Preview" llinks do not add https #11213

Closed
kenleegit opened this issue Jul 20, 2016 · 7 comments
Closed

"Go to site home page" and "Preview" llinks do not add https #11213

kenleegit opened this issue Jul 20, 2016 · 7 comments

Comments

@kenleegit
Copy link

kenleegit commented Jul 20, 2016

Steps to reproduce the issue

Install fresh 3.6.0.
Change apache to listen to higher port e.g. 63000 and configure the virtual host to use SSL.
Restart apache httpd.
I can access front and back ends by https://mysite:63000 and https://mysite:63000/administrator/index.php

Expected result

The "Go to site home page" on administrator login page should link to https://mysite:63000
After administrator login, the Preview link at top right corner should link to https://mysite:63000

Actual result

Both links are linked to http://mysite:63000 only.
(HTTP, rather than HTTPS)

System information (as much as possible)

Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips PHP/5.4.16
Joomla! 3.6.0 Stable [ Noether ] 12-July-2016 21:14 GMT
Linux 3.10.0-327.13.1.el7.x86_64 #1 SMP Thu Mar 31 16:04:38 UTC 2016 x86_64

Additional comments

@andrepereiradasilva
Copy link
Contributor

what do you have configured in "Force HTTPS"?

@jo-sf
Copy link
Contributor

jo-sf commented Jul 20, 2016

please take a look at PR #8619, this PR (or a newer version of it still to be developed - I'm sorry it's not yet complete) will hopefully handle this accordingly:

@kenleegit
Copy link
Author

I am afraid it is nothing to do with Force HTTPS setting. Speaking of "Force HTTPS". I find 3.6.0 recognize only port 443 is valid HTTPS port. If my site other than 443, I could not event set "Force HTTPS" to other than "None". It gives me the misleading message:
Warning
HTTPS has not been enabled as it is not available on this server.
Message
Configuration successfully saved.

And the setting falls back to "None".

I had an older Joomla 3.4.5 running on high port number and its "Go to site home page" and "Preview" links simply follow my current URL and my Force HTTPS there was simply None. I really want that feature back.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11213.

@jo-sf
Copy link
Contributor

jo-sf commented Jul 21, 2016

There was a change in 3.6.0 when you try to set "Force HTTPS" from None to anything else. The check implemented shall prevent you from locking out of your Joomla installation if you cannot connect to your server using HTTPS. You're right that currently HTTPS is only supported via port 443 but even that shall be changed by means of #8619 (two new fields holding the HTTP and the HTTPS port numbers you use, if empty the defaults - ports 80 and 443 - will be used).

But I tink that even before 3.6.0 it was tricky to set "Force HTTPS" to e.g. "Administrator Only" if you're using non-standard ports. After saving this setting and opening the next backend page Joomla automatically tried (and tries) to switch to HTTPS protocol unless you manually opened the backend via HTTPS. And with any HTTPS port other than 443 that would fail.

There was a change in 3.6.0 that causes all links from the backend to the frontend (preview links) to be converted to HTTP if "Force HTTPS" is not set to "Entire Site". But if you set "Force HTTPS" to "Entire Site" your preview links from the backend to the frontend should again work, even if you use a non-standard port. Yes I know you currently cannot change this setting via the global configuration since the HTTPS check fails but you might modify the configuration.php file directly (this is not the desired solution but only a workaround until you can configure the HTTP and HTTPS ports to use).

@brianteeman
Copy link
Contributor

@kenleegit does the answer above solve your issue with using non-standard ports etc.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11213.

@kenleegit
Copy link
Author

Dear @jo-sf,
Thank you for your advice. I got it working. I can live with that.

Dear @brianteeman,
Thank you for your follow-up.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11213.

@brianteeman
Copy link
Contributor

Closing


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11213.

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

No branches or pull requests

5 participants