address PR comment
This commit is contained in:
parent
ea4ac23633
commit
03ffca14dc
@ -705,8 +705,8 @@ def server_side(name: str, sig: inspect.Signature, **kwargs) -> EventSpec:
|
|||||||
def redirect(
|
def redirect(
|
||||||
path: str | Var[str],
|
path: str | Var[str],
|
||||||
external: Optional[bool] = None,
|
external: Optional[bool] = None,
|
||||||
is_external: Optional[bool] = False,
|
is_external: Optional[bool] = None,
|
||||||
replace: Optional[bool] = False,
|
replace: bool = False,
|
||||||
) -> EventSpec:
|
) -> EventSpec:
|
||||||
"""Redirect to a new path.
|
"""Redirect to a new path.
|
||||||
|
|
||||||
@ -726,6 +726,11 @@ def redirect(
|
|||||||
"0.6.6",
|
"0.6.6",
|
||||||
"0.7.0",
|
"0.7.0",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if external is None and is_external is None:
|
||||||
|
is_external = False
|
||||||
|
|
||||||
|
if external is not None and is_external is None:
|
||||||
is_external = external
|
is_external = external
|
||||||
|
|
||||||
return server_side(
|
return server_side(
|
||||||
|
Loading…
Reference in New Issue
Block a user