Redirect to index after deleting feed

This commit is contained in:
Joakim Hellsén 2022-12-10 23:50:59 +01:00
commit 3b7ed0c591
No known key found for this signature in database
GPG key ID: 01FD861E3DAC09AC

View file

@ -221,8 +221,7 @@ async def remove_feed(request: Request, feed_url: str = Form()):
reader.delete_feed(feed_url) reader.delete_feed(feed_url)
reader.update_search() reader.update_search()
context = make_context_index(request) return RedirectResponse(url=f"/", status_code=303)
return templates.TemplateResponse("index.html", context)
@app.get("/search", response_class=HTMLResponse) @app.get("/search", response_class=HTMLResponse)