LPS-48605 change the context path cause exception

Hey @eduardolundgren please have a look at this.