Adjust admin url passed to js to just the path