Extra slash in address

Hi.
On second stage of install R 5.5.9 there is extra slash in address bar.
Then it shown in "Base URL" ans if not delete it it shown in address bar on all pages.
Screenshots :
https://hkar.ru/Yd0r
https://hkar.ru/Yd0s
https://hkar.ru/Yd0t
It' a little annoying.

Comments

  1. 'base_url' in config_default.php

    The 'base_url' is defined in the config_default.php. In some settings like the use of a subdomain, e.g. https://wiki.example.com/, it adds an additional backslash if one condion is not met.

    'base_url'	=> ($_SERVER['SERVER_PORT'] == 443
    		? 'https'
    		: 'http'
    	) .
    	'://' . $_SERVER['SERVER_NAME'].
    	($_SERVER['SERVER_PORT'] != 80
    		? ':' . $_SERVER['SERVER_PORT']
    		: ''
    	) .
    	'/' . preg_replace('/\/\//', '\/', trim(strtr(dirname($_SERVER['SCRIPT_NAME']), '\\', '/'), '/')) . '/' ,


    We need to add also the other condition so it won't add the extra slash.

    FIXED: revision:efdb3b5


    • WikiAdmin
    • 13.05.2019 10:37 edited