-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
initialPath / rootUrl option #111
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
Comments
Actually, you might be able to just put that path as the path to the root route ... ... Nope, because paths don't get inherited. Three options:
|
I agree, we should have this. To stick with existing React convention, I'd like to call it BTW, this feels like something that should be on |
Ha, yeah, that's why I opened #112. Sent from my iPhone
|
👍 to this. Just ran into a situation where it didn't make sense to put the preferred start screen at |
Since we reverted from #133, reopening. |
Also, I'm not sure |
That's not what it means? |
ha, no. Consider a mature app with a lot of server-side rendering + jQuery spaghetti barfed all over the page. You rewrite the app in React and want to use With Much like our friend: http://emberjs.com/guides/routing/#toc_specifying-a-root-url |
Why not just write out the whole path? Or if that's too hard, add a helper
|
it might be, but sometimes you just implement features you're used to without asking questions. |
writing the whole path on the routes is not actually all that bad, closing until more squeaky wheels show up. |
This should be a little easier to implement now that we have relative paths. |
+1 squeakasqueaka This is a PITA for dev mode; e.g. currently my path is I just did this: <Route name='app' path={window.location.pathname} handler={App}> Is that legit? |
if your'e using |
@ryanflorence - Consider this one more squeaky wheel in the application I am working I want to be able to host everything on a suburl. Currently use a slightly modified version of Link and have a helper function that I mostly remember to use when using history.push and friends. |
This is a really ancient issue! We have this concept – it's called |
I haven't tested this, but I'm pretty sure we can't handle an app starting at a deep url already.
For example, we're building a new feature that starts at
/courses/123/files
, hash urls will be fine, but as soon as we turn onlocation="history"
it's probably not going to work.I suspect we'll need
<Route rootPath="/courses/123/files"/>
The text was updated successfully, but these errors were encountered: