Skip to content

Root as an option for filesystem based pages ? (node-webkit env) #263

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

Closed
Shahor opened this issue Sep 4, 2014 · 4 comments
Closed

Root as an option for filesystem based pages ? (node-webkit env) #263

Shahor opened this issue Sep 4, 2014 · 4 comments

Comments

@Shahor
Copy link

Shahor commented Sep 4, 2014

Hi !

It would be great to be able to specify a base root for the router for when you're in an environment using the files directly from the filesystem.

i.e. : On node-webkit, the root looks like

file:///tmp/project/index.html

And therefore, your specified path MUST be

/tmp/project/index.html

It can become very tedious =/ (and is not cross platform compatible).

(this may be a useless idea since I could compute the root path and store it in a var for further usage, but well :] )

@ryanflorence
Copy link
Member

duplicate #111

waiting for more squeaky wheels :)

I have found adding the path hasn't been that troublesome, you only have to do it in your route config, the links, redirects, etc. take care of themselves.

@Shahor
Copy link
Author

Shahor commented Sep 4, 2014

Yup, just found out that myself too after writting this issue.
Sorry I didn't find the duplicate before posting :)

Thanks for the answer !

@ryanflorence
Copy link
Member

the title was bad, so I just updated it :)

@Shahor
Copy link
Author

Shahor commented Sep 4, 2014

No prob ;)

@lock lock bot locked as resolved and limited conversation to collaborators Jan 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants