yui / yui3

A library for building richly interactive web applications.
http://yuilibrary.com/
Other
4.12k stars 1.28k forks source link

app/js/app-base.js _navigate does not include 'root' path for serverRouting #1122

Closed dsteinbach closed 10 years ago

dsteinbach commented 10 years ago

We are init'ing YAF like so:

var app = new Y.App({
    serverRouting: true,
    root: '/subfolder/'
});

In IE, where we want to fallback to server-side rendering, when we call:

app.navigate('/myroute');

It is win.location'ing to "mydomain.com/myroute" when it should be redirecting to "mydomain.com/subfolder/myroute".

Thanks, -Dave S.

ericf commented 10 years ago

What is the URL of the page that you're on you make this call to navigate('/myroute')?

dsteinbach commented 10 years ago

http://sports.yahoo.com/fantasy/premier-league/

To recreate:

  1. Create a team
  2. Go to team page
  3. Change the week selection in the team header to trigger a navigate().
  4. Observe new URL is sports.yahoo.com/team/week/2

Thanks, -Dave S

ericf commented 10 years ago

Closing a duplicate of #1083