I had a problem with the file approach after the application was packaged.
This approach uses the reverse router and all is good.