use scoped path to shared views if scope is present

closes #2253