use scoped path to shared views if scope is present

closes #2253
Merge pull request #2261 from plataformatec/issue-2253

use scoped path to shared views if scope is present