<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -43,7 +43,7 @@ class ArticleDrop &lt; BaseDrop
   end
 
   def url
-    @url ||= absolute_url(@site.permalink_for(@source))
+    @url ||= absolute_url(@site.permalink_for(@source)[1..-1])
   end
 
   def comments_feed_url</diff>
      <filename>app/drops/article_drop.rb</filename>
    </modified>
    <modified>
      <diff>@@ -112,8 +112,8 @@ module Mephisto
       old_published          = article.published_at
       article.published_at ||= Time.now.utc
       article.article_id   ||= article.id
-      permalink_style.split('/').inject [''] do |s, piece|
-        s &lt;&lt; ((name = variable_format?(piece)) &amp;&amp; PERMALINK_OPTIONS.keys.include?(name.to_sym) ? variable_value_for(article, name) : piece)
+      '/' + permalink_style.split('/').collect! do |piece|
+        (name = variable_format?(piece)) &amp;&amp; PERMALINK_OPTIONS.keys.include?(name.to_sym) ? variable_value_for(article, name) : piece
       end.join('/')
     ensure
       article.published_at = old_published</diff>
      <filename>lib/mephisto/dispatcher.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,33 @@
 require File.dirname(__FILE__) + '/../test_helper'
 
+['', '/blog'].each do |root|
+  context &quot;Article Drop with relative root = #{root.inspect}&quot; do
+    fixtures :sites, :sections, :contents, :assigned_sections, :users, :tags, :taggings, :assigned_assets, :assets
+
+    setup do
+      @context = mock_context('site' =&gt; sites(:first).to_liquid)
+      @article = contents(:welcome).to_liquid(:mode =&gt; :single)
+      @article.context = @context
+      Mephisto::Liquid::UrlMethods.stubs(:relative_url_root).returns(root)
+    end
+
+    specify &quot;should show article url&quot; do
+      t = Time.now.utc - 3.days
+      assert_equal &quot;#{root}/#{t.year}/#{t.month}/#{t.day}/welcome-to-mephisto&quot;, @article.url
+    end
+
+    specify &quot;should show comments feed url&quot; do
+      t = Time.now.utc - 3.days
+      assert_equal &quot;#{root}/#{t.year}/#{t.month}/#{t.day}/welcome-to-mephisto/comments.xml&quot;, @article.comments_feed_url
+    end
+
+    specify &quot;should change feed url&quot; do
+      t = Time.now.utc - 3.days
+      assert_equal &quot;#{root}/#{t.year}/#{t.month}/#{t.day}/welcome-to-mephisto/changes.xml&quot;, @article.changes_feed_url
+    end
+  end
+end
+
 context &quot;Article Drop&quot; do
   fixtures :sites, :sections, :contents, :assigned_sections, :users, :tags, :taggings, :assigned_assets, :assets
   
@@ -71,21 +99,6 @@ context &quot;Article Drop&quot; do
     assert_equal '&lt;p&gt;body&lt;/p&gt;', a.send(:body_for_mode, :list)
   end
 
-  specify &quot;should show article url&quot; do
-    t = Time.now.utc - 3.days
-    assert_equal &quot;/#{t.year}/#{t.month}/#{t.day}/welcome-to-mephisto&quot;, @article.url
-  end
-  
-  specify &quot;should show comments feed url&quot; do
-    t = Time.now.utc - 3.days
-    assert_equal &quot;/#{t.year}/#{t.month}/#{t.day}/welcome-to-mephisto/comments.xml&quot;, @article.comments_feed_url
-  end
-  
-  specify &quot;should change feed url&quot; do
-    t = Time.now.utc - 3.days
-    assert_equal &quot;/#{t.year}/#{t.month}/#{t.day}/welcome-to-mephisto/changes.xml&quot;, @article.changes_feed_url
-  end
-
   specify &quot;should show taggable tags&quot; do
     assert_equal %w(rails), contents(:another).to_liquid.tags
   end</diff>
      <filename>test/unit/article_drop_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 require File.dirname(__FILE__) + '/../test_helper'
 
 class SectionDropTest &lt; Test::Unit::TestCase
-  fixtures :sites, :sections, :contents
+  fixtures :sites, :sections, :contents, :assigned_sections
 
   def test_equality
     section = sections(:home).to_liquid</diff>
      <filename>test/unit/section_drop_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>281dd17cb2b7a970260b27bbdc5e7d24e7220633</id>
    </parent>
  </parents>
  <author>
    <name>rick</name>
    <email>technoweenie@gmail.com</email>
  </author>
  <url>http://github.com/emk/mephisto/commit/e668bea7af08a86c26f0b856b8f52555a37f2154</url>
  <id>e668bea7af08a86c26f0b856b8f52555a37f2154</id>
  <committed-date>2008-03-30T23:16:27-07:00</committed-date>
  <authored-date>2008-03-30T23:16:27-07:00</authored-date>
  <message>fix bug where ArticleDrop#url was passing absolute urls to the #absolute_url helper</message>
  <tree>1c56460891451ec6621ad793059a6dbcb9b1003d</tree>
  <committer>
    <name>rick</name>
    <email>technoweenie@gmail.com</email>
  </committer>
</commit>
