Re-visit Java static app to see if deep linking possible
Research rewriter to see if deep linking possible. Will not have for EA3 (note this is for the .Java served static app only)
Is this still an issue? What is the effort and implication if we don't do this? @grechaw would be great if you could triage/research for next week.
We actually have deep linking, but it works differently in the java pre-built app (our paths are prepended with # sign in order to hide them from the server). It would be a nice-to-have if the Spring server could do the rewriting sufficient to disable this workaround, but to me this seems like a relatively minor point. I haven't heard of anyone having trouble or concerns about the way it's working now.
Ah, thanks for the clarification @laurelnaiad . I had been pretty happy with the app, and didn't realize that deep linking worked at all.
If the Spring server did the rewriting, would that change functionality to end user? such as URL display or anything? is it 'cleaner' to do without the workaround? any impacts to how node stack will be implemented?
I've looked into how people have made this work with Java web containers -- it would be possible to support this if we reworked our URL space, but that's a pretty big disruption, particularly now. I'm sure there's some clever way that Spring could implement this rewriting -- it might be somewhat ugly though... I've not seen any clean example of how to do so.
It's the difference between this (non pre-built):
http://localhost:3000/?q=stuff&date-ge=2012-06-18T07:00:00.000Z&date-lt=2013-05-22T07:00:00.000Z
and this:
http://localhost:3000/#?q=stuff&date-ge=2012-06-18T07:00:00.000Z&date-lt=2013-05-22T07:00:00.000Z
If someone were to email a link (or follow one from documentation, etc.) like the former to someone running the pre-built app in Java, the link wouldn't work b/c the Spring server wouldn't know what to do with it.
This is how most people seem to be doing it in my research: http://www.tuckey.org/urlrewrite/
@popzip and I agreed this morning that this is not going to happen in 8.0-1. I think it's perfectly doable, but the approaches thus far seem to be a divergence from regular spring boot practice (tuckey urlrewrite I agree is in use, but it's in the Java/XML/Servlet container world and doesn't port well). I think it's likely that this functionality will arrive in Spring boot in the coming months and we'll be able to just take advantage of it then.
Found instructions on how to do with embedded spring boot here
http://stackoverflow.com/questions/27318439/how-to-convert-a-subdomain-to-a-path-with-embedded-tomcat-8-and-spring-boot