Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basepath property #4

Open
arboleya opened this issue Apr 28, 2014 · 2 comments
Open

Add basepath property #4

arboleya opened this issue Apr 28, 2014 · 2 comments

Comments

@arboleya
Copy link
Owner

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.

@hems
Copy link

hems commented Apr 28, 2014

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

@naso
Copy link

naso commented Mar 14, 2016

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants