ways icon indicating copy to clipboard operation
ways copied to clipboard

Add basepath property

Open arboleya opened this issue 11 years ago • 2 comments

It'd be useful to have a basepath property for handling the cases where the site/app is not under the root dir "/", but instead a subfolder of any level.

arboleya avatar Apr 28 '14 15:04 arboleya

i did a quick hack on my hash file: https://github.com/hems/ways-browser/blob/hash-hack/src/hash.coffee i expect the user to set window.location.base_path before calling ways-browser, like this:

ways = require('ways'); window.location.base_path = '/my_folder/' ways.use require('ways-browser')

maybe when calling, ways.use require('ways-browser') we could pass an extra object for parameters to avoid this window.dirtyness

hems avatar Apr 28 '14 18:04 hems

Hello!

Would be good to fix this. I have been looking myself into it and manage to fix it, but not sure if it is the best practice, and if it won't break other stuff.

Any ideas?

naso avatar Mar 14 '16 21:03 naso