Issue #2358665 by eshta: Include base_path when generating links from server-side.