Fix show_all /pages
This commit is contained in:
+2
-6
@@ -17,12 +17,8 @@ module Gollum
|
|||||||
#
|
#
|
||||||
# Returns the String url_path
|
# Returns the String url_path
|
||||||
def url_path
|
def url_path
|
||||||
path = if self.path.include?('/')
|
path = self.path
|
||||||
self.path.sub(/\/[^\/]+$/, '/')
|
path = path.sub(/\/[^\/]+$/, '/') if path.include?('/')
|
||||||
else
|
|
||||||
''
|
|
||||||
end
|
|
||||||
|
|
||||||
path
|
path
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user