• Resolved hnwp

    (@hnwp)


    Before the newer versions using React, adding a new snippet and saving it would refresh the page and send you to the correct URL with the snippet id as a param. Now, saving a new snippet keeps you on the same add-snippet page without refreshing, so if you want to refresh the page or copy and paste it, you have to go back into the list of all snippets and find it.

    Can you either update the window.history or redirect the user to the new snippet URL?

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Hi @hnwp,

    Thank you for the feedback!

    I designed the add new/edit page to work in this way for the ease of not having to wait for the page to reload when moving between the two states, but I can definitely appreciate how this might be confusing.

    I’ll definitely look into addressing this in the next release, using one of the methods you suggest.

    Thread Starter hnwp

    (@hnwp)

    That’s great. Thank you so much.

    One other thing from a UX perspective: Could you maybe add a fixed-position saved notification instead of just the message at the top?

    If I’m in the middle of a long code snippet and I press Ctrl + S, I have no assurance that the snipped was saved. Perhaps either a fixed, floating saved notification (e.g. toast notification), or some other visual feature to the code mirror box (like Woocommerce’s block() w/ reduced opacity).

    P.S. I think the active/inactive status bar (green or gray border) for the snippet should be on the left side other than the right (like it was before), as that’s where the eyes go when looking at the title of the snippet–just like the saved message notification.

    Thanks again for your great work.

    Plugin Author Shea Bunge

    (@bungeshea)

    Just an update for you @hnwp. In the next release:

    • The current page URL will update accordingly when you transition from adding to editing a snippet.
    • The page will scroll so that the ‘saved’ notice is visible when saving a snippet.
    • The active status bar has moved back to the left-side of the title bar.

    Thank you again for your feedback – please do feel free to continue sharing ideas as they come to mind.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘URL Not Changed When Adding New Snippet’ is closed to new replies.