On demand exports should strip off directory components until if finds an exported url directory and then export all intervening directories as the requested URL. You do have to export the directory recusively. If this doesn't happen it is a bug. The code that implements this is merely two small functions.