SpiderKeeper
SpiderKeeper copied to clipboard
404 error on /project//job/periodic url with apache2 server
I deployed spiderkeeper using apache and got 404 error when i opened /project//job/periodic url. It is url when you don't have any project and tries to go to other urls (periodic jobs in my case). It happens because you have these code:
@app.before_request
def intercept_no_project():
if request.path.find('/project//') > -1:
flash("create project first")
return redirect("/project/manage", code=302)
But apache2 transform url /project//job/periodic to /project/job/periodic so redirect is not working. I think there should be another way to determine redirect instead of checking for double slash.