adapt links and ajax-calls to be able to run under different
context-paths