Skip to content

Adjust suffix in server to allow redirection when needed#2931

Merged
justinmayer merged 1 commit into
getpelican:masterfrom
avaris:server-list-files
Oct 5, 2021
Merged

Adjust suffix in server to allow redirection when needed#2931
justinmayer merged 1 commit into
getpelican:masterfrom
avaris:server-list-files

Conversation

@avaris

@avaris avaris commented Oct 4, 2021

Copy link
Copy Markdown
Member

Folders without index.html has to be redirected (/foo -> /foo/) for
directory listing to work properly. Skip '/' suffix if original path
does not have it so that base class can return a redirect.

Pull Request Checklist

Resolves: #2841

  • Ensured tests pass and (if applicable) updated functional test output
  • Conformed to code style guidelines by running appropriate linting tools
  • Added tests for changed code
  • N/A Updated documentation for changed code

Folders without index.html has to be redirected (/foo -> /foo/) for
directory listing to work properly. Skip '/' suffix if original path
does not have it so that base class can return a redirect.
@justinmayer

Copy link
Copy Markdown
Member

Many thanks for the fix, @avaris! 🏅

@justinmayer
justinmayer merged commit 324fcef into getpelican:master Oct 5, 2021
@avaris
avaris deleted the server-list-files branch October 5, 2021 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

drafts index page renders with incorrect links to draft articles if it doesnt have a trailing /

2 participants