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

Configuring entryPoint when using webjar #2

Closed
tommyb82 opened this issue Apr 9, 2015 · 2 comments
Closed

Configuring entryPoint when using webjar #2

tommyb82 opened this issue Apr 9, 2015 · 2 comments

Comments

@tommyb82
Copy link

tommyb82 commented Apr 9, 2015

I'm now pulling in the new webjar (http://mvnrepository.com/artifact/org.webjars/hal-browser/b7669f1-1) into a Spring Boot / HATEOAS web service app and it works great..
However - the default entryPoint as configured in browser.html ('/') means that when I access the browser it doesn't see the application's true entry point (i.e. the context path) until I manually enter it.

I would appreciate any advice / workarounds that may be possible for this - obviously I don't want to unjar - hack - rejar to change any files as that would defeat the purpose of pulling it in as a webjar in the first place!

Thanks for the excellent work.

@andrekampert
Copy link

Sorry for the late reply. The WebJar directly packages https://github.com/mikekelly/hal-browser without modifications. Referring to mikekelly/hal-browser#53 I believe the correct way to do this is to add a hash to the browser url, e.g.

http://haltalk.herokuapp.com/explorer/browser.html#http://localhost:3000

@tommyb82
Copy link
Author

Thanks for the reply, yes we had discovered that feature and it provides a satisfactory workaround to get the user into the HAL browser in the right place initially, the only issue is if they then click the 'Go to Entry point' button, it drops them back at the web root. We could add a redirect in to deal with this situation though I think. Thanks for your advice and for getting the webjar for this setup!

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

No branches or pull requests

2 participants