Introduced basePath handling.
Minor fix.