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

Use url_for to allow running CTFd on a subpath #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tyhdefu
Copy link
Contributor

@tyhdefu tyhdefu commented Aug 29, 2024

Thanks for your work on this plugin.

Due to the hardcoded paths in index.html, the plugin doesn't work when run on a subpath (e.g. example.com/ctfd).
This is probably only done when testing, and probably is never a problem on a production deployment, but if you're interested in the fix then merge it.

I haven't managed to explicitly test this without a subpath, but I think this is the "flask" way of doing things and follows how the rest of the ctfd templates work so I highly doubt there would be an issue.

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.

1 participant