if you go to a site that is https using an http format, then it automatically loads the https version.
if you go to a site that is http using an https format then it will come up with a not secure message
it therefore makes sense is that if no ‘httpx’ is given, you default to the http which ensures it loads in both cases.
if you only want to go to https sites, then enter the https in your link
I couldn’t explain…
If I type www.google.com
when I post the topic, it becomes http://www.google.com instead of https://www.google.com
Try writing a URL with only www and submitting the topic.
yes as stated above, that is expected behavior for the reasons stated above
But seriously, are you telling me that it is normal that if a user writes www.google.com
on bbpress it becomes http://www.google.com and not https:?
yes for the reasons stated above, ie the link will resolve to https if the site has ssl.
Not every site is https
that’s how the bbpress authors have decided it should work
99% of sites are in https and not http, so if you can, it would be a good idea to point this out to whoever handles bbpress updates.
People who type in a domain start with www and never type https, so it’s really annoying to see URLs in http.
since it is you asking 🙂
add_filter( 'bbp_make_clickable', 'rewst', 10 , 2 ) ;
function rewst ($ret, $text ){
$ret = str_replace ('http://' , 'https://' , $ret);
return $ret ;
}
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
Code Snippets
Okay, thanks, I’ll do that, but I think this issue needs to be fixed in future updates. HTTP hasn’t been used in years.
I have no influence on what the core bbpress does.
21% of websites are http
Even though you have some influence over what they decide to do, this update is very simple and the right thing to do.
Browsers flag all http sites as unsafe, so I believe 21% of http sites are essentially abandoned.
Since 79% of sites are http, it’s logical that if a site doesn’t specify https, it’s a given that https will be prefixed instead of http.
Or, they could just as easily leave the www without the http(s) in front.
Are these two spam posts? Why are both URLs in https and not http?
because they entered the full link!!!
sorry this is going nowhere