Skip to content

Show current pathname #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Rich-Harris opened this issue May 9, 2022 · 1 comment
Closed

Show current pathname #5

Rich-Harris opened this issue May 9, 2022 · 1 comment

Comments

@Rich-Harris
Copy link
Member

When we add SvelteKit material, it'll become necessary to show the current pathname somehow. (I'm actually not sure if it's possible to track this from outside the iframe, but I'll be optimistic and assume that it is.)

We probably don't want this for the Svelte material.

@Rich-Harris
Copy link
Member Author

Solved by injecting a client that posts a message. It won't work if config.kit.files.template is something other than src/app.html, but we can cross that bridge another time.

Currently the URL bar is always visible, but it'd be easy to hide for Svelte sections if we want to

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

No branches or pull requests

1 participant