Use path not URL in views