]> git.gir.st - VimFx.git/commit
Leave trailing slash when going up path (#781)
authorsinkuu <sinkuupump@gmail.com>
Mon, 11 Jul 2016 14:38:18 +0000 (23:38 +0900)
committerSimon Lydell <simon.lydell@gmail.com>
Mon, 11 Jul 2016 15:55:08 +0000 (17:55 +0200)
commit9269849da29b56dc74111ea91f40e842a32bb244
treee57da80a6e1b523cbdceb6a51e40242658bec0aa
parent8168d33ba4dd5a05cbc2097dc7680888fb2131b6
Leave trailing slash when going up path (#781)

Previously:

- `/some/path` → `/some`
- `/some/path/` → `/some`

Now:

- `/some/path` → `/some/`
- `/some/path/` → `/some/`

The convention on most modern sites seem to be to make a trailing slash
optional. But especially on older servers, no trailing slash means "view
file", while a trailing slash means "view directory". Removing the
trailing slash in such cases most likely results in a 404, while
preserving it gives a useful result.
extension/lib/commands-frame.coffee
Imprint / Impressum