We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9c9555 commit 26726ddCopy full SHA for 26726dd
client/signup/config/flows.js
@@ -109,10 +109,13 @@ function getLaunchDestination( dependencies ) {
109
return addQueryArgs( { celebrateLaunch: 'true' }, dependencies.back_to );
110
}
111
112
- if ( dependencies.refParameter === 'wp-admin' ) {
+ const ref = dependencies.refParameter?.trim() ?? '';
113
+ const isWpAdminPath = ref === 'wp-admin' || ref.startsWith( 'wp-admin/' );
114
+
115
+ if ( isWpAdminPath ) {
116
return addQueryArgs(
117
{ 'celebrate-launch': 'true' },
- `https://${ dependencies.siteSlug }/wp-admin`
118
+ `https://${ dependencies.siteSlug }/${ ref }`
119
);
120
121
0 commit comments