Skip to content

[Bug]: In a git connected app, on first deploy from branch, and navigating to master, the url is retained with branch name #41349

Description

@btsgh

Is there an existing issue for this?

  • I have searched the existing issues

Description

When static url in br1 is diff from static url in master, and we have not merged the branch to master yet, on deploy from br1, if I only change the branch to master, so that i can navigate to same page in master, it navigates correctly, but the url in the first instance of access is not updated - it is retained with br1's static url, instead of being updated to master's static url.

Steps To Reproduce

  1. Create a git connected app
  2. Enable static url in master, and set an app slug [app1] and commit
  3. Create a br1 from master
  4. Change the static url app slug in br1 [app1br1]. Commit but Don't merge to master
  5. Now deploy from br1
  6. Change the from branch=br1 to branch=master
  7. The redirection happens correctly, but the app slug still remains as app1br1 in the url.
    On redirection, the app slug in the url should immediately change to the masters url - app1.

Public Sample App

No response

Environment

Deploy Preview

Severity

Medium (Frustrating UX)

Issue video log

https://jam.dev/c/90aeee7b-2667-4acf-947c-154e27a942eb

Version

Cloud

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingDeploy PreviewIssues found in Deploy PreviewMediumIssues that frustrate users due to poor UXNeeds TriagingNeeds attention from maintainers to triagestatic-urlEnables static and human-readable URLs for applications and pages.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions