Fix check for partials and ensure the path does not include a scheme.
Do not try to create the layout from the identifier if it's already a fully qualified url.