blackberry / WebWorks-Samples

Collection of BlackBerry WebWorks sample applications
Apache License 2.0
152 stars 143 forks source link

KitchenSink home button errors in Ripple #23

Open astanley opened 12 years ago

astanley commented 12 years ago

Home button redirects to the / path, which works as expected for content operating within a WebWorks application, but not in Ripple (404 errors or wrong paths).

dansilivestru commented 12 years ago

this sounds like a ripple bug to me. Should we move it there?

astanley commented 12 years ago

Nah, I think this is an application issue. Here is the logic for the home button

function goHome() { window.location = "/index.html"; }

The "home" path should be dynamic based on the current environment. Eg. open the following in a browser and press the home button (=wrong page).

http://blackberry.github.com/WebWorks-Samples/kitchenSink/html/css3/fonts.html

dansilivestru commented 12 years ago

Ah, got it. K, just checking :-)