INNER CODE UNIT · Python

_current_public_path

iLearn-Lab/NovelClaw · apps/multiagent/local_web_portal/app/main.py:200

def _current_public_path(request: Request) -> str:
    query = f"?{request.url.query}" if request.url.query else ""
    return f"{_app_path(request.url.path)}{query}"


def _redirect(path: str, **query: str) -> RedirectResponse:
    parts = urlsplit(path)
    params = dict(parse_qsl(parts.query, keep_blank_values=True))
    for key, value in query.items():
        if value is None:
            continue
        params[key] = str(value)
    target_path = _app_path(parts.path)
    target = urlunsplit(
        (
            parts.scheme,
            parts.netloc,
            target_path,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…