mirror of
https://github.com/neocities/neocities.git
synced 2025-07-12 05:48:11 +02:00
add htm to uri, use site.uri for screenshot
This commit is contained in:
parent
0e827319cd
commit
3a41029313
3 changed files with 4 additions and 4 deletions
|
@ -1438,7 +1438,7 @@ class Site < Sequel::Model
|
|||
return uri unless path
|
||||
|
||||
path = '' if path == '/' || path =~ ROOT_INDEX_HTML_REGEX
|
||||
path = path.sub(%r{^/}, '').sub(%r{/index\.html$}, '/').sub(/\.html$/, '')
|
||||
path = path.sub(%r{^/}, '').sub(%r{/index\.html?$}, '/').sub(/\.html?$/, '')
|
||||
|
||||
unless path.empty?
|
||||
escaped_path = self.class.escape_path path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue