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

[PlayFramework 2.2.1] Path Problem in alternate route context #3

Open
jackchi opened this issue Jan 30, 2014 · 1 comment
Open

[PlayFramework 2.2.1] Path Problem in alternate route context #3

jackchi opened this issue Jan 30, 2014 · 1 comment

Comments

@jackchi
Copy link

jackchi commented Jan 30, 2014

Hello James,

When I change my Play Framework default route in "application.conf"
to
application.context = "/path/to/my/prefix"

I get a webjar/require.js error on Line 101:

GET http://localhost:9000/webjars/requirejs/2.1.8/require.js 404 (Not Found)
...
document.getElementsByTagName("head")[0].appendChild(script);

Could it be that the script tag does not have the current application context?

Jack

@jamesward
Copy link
Member

I think in that case the URL should be:

http://localhost:9000/path/to/my/prefix/webjars/requirejs/2.1.8/require.js

Does that path work?

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