vue-admin icon indicating copy to clipboard operation
vue-admin copied to clipboard

URL's with extensions are not loaded

Open MaestroJurko opened this issue 8 years ago • 7 comments

This is an example of URL:

http://127.0.0.1:8081/storage/example.py

But what we get in response is:

Cannot GET /storage/example.py

Configured path:

path: 'storage/*'

Any suggestion on how to fix this?

MaestroJurko avatar Feb 06 '17 11:02 MaestroJurko

Any suggestions on getting this fixed?

MaestroJurko avatar Mar 02 '17 04:03 MaestroJurko

Which path? Is it in client/router/index.js?

fundon avatar Mar 03 '17 19:03 fundon

I put it in browse.js

MaestroJurko avatar Mar 13 '17 03:03 MaestroJurko

Any suggestions, because this problem is stopping us from deploying to production?

MaestroJurko avatar Mar 15 '17 22:03 MaestroJurko

Have you added .py to your webpack build extensions? https://github.com/vue-bulma/vue-admin/blob/master/build/webpack.base.conf.js#L28

ddproxy avatar Mar 19 '17 00:03 ddproxy

I added it, but still having the same issue.

MaestroJurko avatar Mar 19 '17 01:03 MaestroJurko

I see that if I change mode of router from history back to hash, I can navigate to the files, but we would not like to have the hash in the url in production. Any suggestions?

MaestroJurko avatar Mar 31 '17 23:03 MaestroJurko