https://github.com/gregturn/rave-relative-url-bug
Spring MVC + RaveJS bug example
https://github.com/gregturn/rave-relative-url-bug
Last synced: 6 months ago
JSON representation
Spring MVC + RaveJS bug example
- Host: GitHub
- URL: https://github.com/gregturn/rave-relative-url-bug
- Owner: gregturn
- License: other
- Created: 2014-11-11T22:59:22.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-11T23:03:29.000Z (over 11 years ago)
- Last Synced: 2025-10-12T00:07:05.046Z (8 months ago)
- Language: Java
- Size: 117 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
README
This project reproduces the problem of Rave handling relative paths.
To run this example, you need the following:
* Java 7 or higher
* Maven 3
* Bower
To reproduce:
. Clone this repository
. `cd /your/path/to/this/repo`
. `cd src/main/resources/static`
. `bower install`
. `cd /base/of/this/repo`
. `mvn spring-boot:run`
With everything running, you should be able to see the issue at hand.
. Navigate to http://localhost:8080 with your browser.
. Open JavaScript console. This page should have loaded just fine with Rave REPL on display.
. Now navigate to the link at http://localhost:8080/subUrl/RaveJS.
. It will render the page with RaveJS, but the console will show boot.js to not load properly.
Spring MVC will have shifted the local path to */subUrl*. RaveJS picks up and runs with that as the baseURI, which wrecks everything.