Skip to:
Content
Pages
Categories
Search
Top
Bottom

Bug https url

Viewing 7 replies - 1 through 7 (of 7 total)
  • @robin-w

    Moderator

    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

    @ricsca2

    Participant

    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.

    @robin-w

    Moderator

    yes as stated above, that is expected behavior for the reasons stated above

    @ricsca2

    Participant

    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:?

    @robin-w

    Moderator

    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

    @ricsca2

    Participant

    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.

    @robin-w

    Moderator

    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

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Skip to toolbar