In order for this to work you have to specify the route of the selected doctype as will be replaced later on.
iex:
if you are creating a Layout for an address you should use /app/address/
This should work like a charm, let me know if this solves your issue