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

Support Trailing Forward Slashes #2

Open
imaurer opened this issue Jun 22, 2018 · 0 comments
Open

Support Trailing Forward Slashes #2

imaurer opened this issue Jun 22, 2018 · 0 comments

Comments

@imaurer
Copy link
Contributor

imaurer commented Jun 22, 2018

Currently there is a hack where if a forward slash is needed at the end of a URL, you can specify the snippet at the end of the lower-most directory:

#fs

Such as:

pets#fs

Which will change:

http://.../pets

to:

http://.../pets/

Here is the magic line of code that performs this action:

url = path.url.replace("#fs", "/")

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

No branches or pull requests

1 participant