Store context URL in model and use in plugins