Needs to take the current base url and possible path prefixes into account. Closes #4829
octoprint_setuptools