Confusion about rootURL


#1

I understand rootURL is used for starting point for ember app(?). so If i have following using Ember 1.7.0:

 Aap=Em.Application.create();
Aap.Router.map(function(){
this.route('about');
this.route('contact');
});
Aap.Router.reopen({
rootURL:"/app1/"
})

Question is : The link to about, contact should be shown in address bar as /app1/about or /about (assume its location:history)? I’m getting /about ie abc.com/about where as i wish it to be like abc.com/app1/about.

also can I use rootURL with query params ie " abc.com/app.php?v=1"

Thanks.

Edit: there’s similar question asked on SO but so far no answer, link http://stackoverflow.com/q/24861251/327504


#2

Looks like you have mis-matched quotes. Try

'/app1/'

instead of

"/app1/'

#3

Thanks, that was a typo here.