Skip to content

Exposes query string from the permalink to session#3169

Merged
aleDsz merged 2 commits intomainfrom
ale-query-string-app-info
Apr 2, 2026
Merged

Exposes query string from the permalink to session#3169
aleDsz merged 2 commits intomainfrom
ale-query-string-app-info

Conversation

@aleDsz
Copy link
Copy Markdown
Member

@aleDsz aleDsz commented Apr 1, 2026

You can access the query string keys if they has a LB_/lb_ prefix.

# Access /apps/my-app?lb_username=aledsz

app_info = Kino.Workspace.app_info()
Kino.Input.text("Username", default: app_info.session_params["username"]

@aleDsz aleDsz self-assigned this Apr 1, 2026
Comment thread lib/livebook_web/live/app_live.ex Outdated
Copy link
Copy Markdown
Member

@jonatanklosko jonatanklosko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just the nitpicks, otherwise looks good to me!

Comment thread lib/livebook/app.ex Outdated
Comment thread lib/livebook_web/live/app_live.ex Outdated
@aleDsz aleDsz merged commit 131ef75 into main Apr 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants