Skip to content

URL in address bar does not change after publishing story #697

@swissspidy

Description

@swissspidy

Bug Description

refreshPostEditURL is used to update the URL in the address bar after publishing/updating a story.

However, it currently only runs after updating a story, not after initially publishing it.

Expected Behaviour

URL in address bar should be updated the first time around, when publishing the story.

Steps to Reproduce

  1. Create new story.
  2. Click Publish
  3. Notice that URL does not change, it stays wp-admin/post-new.php?post_type=web-story
  4. Click `Update
  5. Notice that URL changes to wp-admin/post.php?post=123456&action=edit

In other words:

  1. Create new story.
  2. Click Publish
  3. Reload page
  4. Lose changes

Screenshots


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance Criteria

QA Instructions

Metadata

Metadata

Assignees

Labels

Type: BugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions