Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Weblog.getURL() calls Weblog.getAbsoluteURL()

If we are going to use subdomain URLs, we'll need to always (question) use absolute URLs when referring to Weblogs (at the very least we need to change some assumptions)

Code Block
    public String getURL() {
         return getAbsoluteURL();
     }

Changes to URLModel

URLModel.getAbsoluteSite() uses URLStrategy

Code Block

    /** Absolute URL of Roller, e.g. http://localhost:8080/roller */
    public String getAbsoluteSite() {
  //      return WebloggerRuntimeConfig.getAbsoluteContextURL();
    	URLStrategy urlStrategy = WebloggerFactory.getWeblogger().getUrlStrategy();
    	return urlStrategy.getWeblogURL(weblog, null, true);
   }

Configuration

Server Administrator

...