Use current base path instead of fixed service base path
Detect service base path automatically