Skip to content

(sandstorm package): Synchronize URL to Sandstorm address bar #12

@paulproteus

Description

@paulproteus

Steps to reproduce:

  • Be inside a Brainstorm in Sandstorm
  • Create a new Brainstorm
  • Create a new Brainstorm card, for example

pre-weird

  • Note that the app iframe has moved to a URL like /note/...
  • Reload the page (because why not)

Expected behavior:

  • See the same thing as you saw before the reload.

Actual behavior:

  • Find yourself wondering where your card went. Screenshot:

post-weird

Fix:

Add something like this to the HEAD element, to synchronize the app's current URL with Sandstorm:

https://gist.github.com/paulproteus/99373ffce3c277bf6ec2

Also note - in the future, I hope Sandstorm can make this issue go away by e.g. automatically running JS like this to synchronize the location. But since it's needed right now, I thought I should alert you to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions