diff --git a/lib/jekyll/page.rb b/lib/jekyll/page.rb
index <HASH>..<HASH> 100644
--- a/lib/jekyll/page.rb
+++ b/lib/jekyll/page.rb
@@ -64,7 +64,7 @@ module Jekyll
       return @url if @url
 
       url = if permalink
-        if uses_relative_permalinks
+        if site.config['relative_permalinks']
           File.join(@dir, permalink)
         else
           permalink
Use site config to determine whether permalinks should be relative.