Allow having prefix specific layouts.

Refs #3907
It would only list the prefix specific path.