Fix extension navigation (#2236)

* fix: avoid `path` clash with other routes (`/withdraw` in this case)

* fix: refresh user state after extension action

* chore: fix `mypy`
This commit is contained in:
Vlad Stan 2024-02-05 13:39:35 +02:00 committed by GitHub
parent 55fed49be1
commit 22ea83e843
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -185,7 +185,7 @@
flat
color="primary"
type="a"
:href="extension.id"
:href="extension.id + '/'"
>{%raw%}{{ $t('open') }}{%endraw%}</q-btn
>
<q-btn

View File

@ -167,6 +167,9 @@ async def extensions_install(
)
)
# refresh user state. Eg: enabled extensions.
user = await get_user(user.id) or user
return template_renderer().TemplateResponse(
"core/extensions.html",
{