Skip to content
This repository has been archived by the owner on May 26, 2019. It is now read-only.

rootURL vs. baseURL 💫 #612

Closed
HeroicEric opened this issue Aug 18, 2015 · 7 comments
Closed

rootURL vs. baseURL 💫 #612

HeroicEric opened this issue Aug 18, 2015 · 7 comments

Comments

@HeroicEric
Copy link
Sponsor Member

So I'm not really sure which is correct here but I think we should make this more clear (so I can understand 😄 )

Ember Guides

The ember guides mention to specify a Root URL when "your Ember application is one of multiple web applications served from the same domain. For example, if you wanted to serve your blogging application from http://emberjs.com/blog/, it would be necessary to specify a root URL of /blog/."

Ember CLI Guides

The ember-cli guides mention to specify a Base URL "if you are deploying the app to somewhere other than the root URL (/)"

The Problem

This is confusing. I'm still not totally sure which one is the correct recommendation or maybe they both have their specific use cases but those are not clear to me.

I would have included a PR to help fix this but as I said, I'm not really sure what the answer is 😄

Can anybody halp so we can clear this up?

Related issues:

Thanks to @davidpett for helping me out on Slack.

@locks
Copy link
Contributor

locks commented Aug 18, 2015

I remember some discussion about potential problems with <base>, I was even under the impression it was to be removed.

@davidpett
Copy link

To further the confusion, both statements are correct. You use baseURL when you are deploying the app (meaning all app assets) to somewhere other than the domain root that it is served on (something like s3). In contrast, rootURL is used when the application root is a sub directory on the domain

@jayphelps
Copy link
Contributor

Further reading:

Last discussion I knew of was plans to the effect of "change rootURL to rootPath; change baseURL to origin (matching window.location.origin); extract both from document.baseURI by default" but it has not yet been done AFAIK.

@trek
Copy link
Member

trek commented Aug 20, 2015

I'm going to schedule time with @rwjblue to clarify this

@michaelrkn
Copy link
Contributor

@trek @rwjblue any progress figuring this out?

@michaelrkn
Copy link
Contributor

@SaladFork is on this!

@michaelrkn
Copy link
Contributor

Closing in favor of ember-cli/ember-cli#4905.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants