mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
Fix for links back from deep nested directories
This commit is contained in:
parent
6c9267d791
commit
c24d1d73bd
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@
|
|||
<% dir_array = @dir.split '/' %>
|
||||
<% dir_array.each_with_index do |dir,i| %>
|
||||
<% if i+1 < dir_array.length %>
|
||||
<a href="/dashboard?dir=<%= Rack::Utils.escape dir %>"><%= dir %></a> <i class="fa fa-angle-right"></i>
|
||||
<a href="/dashboard?dir=<%= Rack::Utils.escape dir_array[1..i].join('/') %>"><%= dir %></a> <i class="fa fa-angle-right"></i>
|
||||
<% else %>
|
||||
<%= dir %>
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Reference in a new issue