<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,6 +2,8 @@
 
 === Edge
 
+* Adjust StandardTags#relative_url_for for case when relative_url_root
+is nil. [Sean Cribbs]
 * Correct rendering error in extensions controller. [Sean Cribbs]
 * Correct typo in config/boot.rb. [Sean Cribbs]
 * Major refactoring and simplification of LoginSystem. [Sean Cribbs]</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -977,7 +977,7 @@ module StandardTags
     end
 
     def relative_url_for(url, request)
-      File.join(ActionController::Base.relative_url_root, url)
+      File.join(ActionController::Base.relative_url_root || '', url)
     end
 
     def absolute_path_for(base_path, new_path)</diff>
      <filename>app/models/standard_tags.rb</filename>
    </modified>
    <modified>
      <diff>@@ -83,7 +83,7 @@ module Spec
             page.request = ActionController::TestRequest.new(:sample_param =&gt; 'data')
             page.request.request_uri = @request_uri || page.url
             page.request.host = @host || test_host
-            ActionController::Base.relative_url_root = @relative_root || &quot;&quot;
+            ActionController::Base.relative_url_root = @relative_root
             page.response = ActionController::TestResponse.new
             if tag_content.nil?
               page.render</diff>
      <filename>spec/matchers/render_matcher.rb</filename>
    </modified>
    <modified>
      <diff>@@ -16,6 +16,11 @@ describe &quot;Standard Tags&quot; do
     end
   end
 
+  it &quot;&lt;r:url&gt; with a nil relative URL root should scope to the relative root of /&quot; do
+    ActionController::Base.relative_url_root = nil
+    page(:home).should render(&quot;&lt;r:url /&gt;&quot;).as(&quot;/&quot;)
+  end
+
   it '&lt;r:url&gt; with a relative URL root should scope to the relative root' do
     page(:home).should render(&quot;&lt;r:url /&gt;&quot;).with_relative_root(&quot;/foo&quot;).as(&quot;/foo/&quot;)
   end</diff>
      <filename>spec/models/standard_tags_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>818ae3f91f2e1c095db9452960e11638d06d6f2c</id>
    </parent>
  </parents>
  <author>
    <name>Sean Cribbs</name>
    <email>seancribbs@gmail.com</email>
  </author>
  <url>http://github.com/pilu/radiant/commit/33c5e1f5ff0a7236fe850935d81f800d40cf8c57</url>
  <id>33c5e1f5ff0a7236fe850935d81f800d40cf8c57</id>
  <committed-date>2009-02-25T19:03:57-08:00</committed-date>
  <authored-date>2009-02-25T19:03:57-08:00</authored-date>
  <message>Adjust StandardTags#relative_url_for for case when relative_url_root is nil.</message>
  <tree>2b6ee0812bbac18bd12d960d517b7cb9a28d9be1</tree>
  <committer>
    <name>Sean Cribbs</name>
    <email>seancribbs@gmail.com</email>
  </committer>
</commit>
