Feature #7272 ready to be tested

Same thing here for api_get_path() and code