Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow leading slashes #1284

Closed
wants to merge 3 commits into from

Conversation

rien
Copy link

@rien rien commented May 24, 2020

This PR adds an allowLeadingSlash option which allows users to opt-in to leading slashes in the input if a prefixUrl is given. It is implemented by removing the leading slash if this option is true.

I'm open for suggestions and changes, especially since this hasn't been discussed in the issue yet if this option in desired or not by the maintainers.

Fixes #1283.

Checklist

  • I have read the documentation.
  • I have included a pull request description of my changes.
  • I have included some tests.
  • If it's a new feature, I have included documentation updates.

@szmarczak szmarczak closed this May 24, 2020
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.

Allow leading slash behavior with opt-in
2 participants