File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
src/commands/texei/cpqsettings Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -224,8 +224,19 @@ export default class Set extends SfCommand<CpqSettingsSetResult> {
224224 return `${ instanceUrlClean } /secur/frontdoor.jsp?sid=${ accessToken } ` ;
225225 }
226226
227- // eslint-disable-next-line class-methods-use-this
228- private async getSettingURL ( urlOfInstance : string ) {
229- return `${ urlOfInstance . substring ( 0 , urlOfInstance . indexOf ( '.' ) ) } --sbqq.visualforce.com/apex/EditSettings` ;
227+ private async getSettingURL ( urlOfInstance : string ) : Promise < string > {
228+ let prefix ;
229+
230+ if ( this . org . isScratch ( ) ) {
231+ prefix = "--sbqq.scratch" ;
232+ } else if ( this . org . isSandbox ( ) ) {
233+ prefix = "--sbqq.sandbox" ;
234+ } else {
235+ prefix = "--sbqq" ;
236+ }
237+
238+ const ending = `${ prefix } .vf.force.com/apex/EditSettings`
239+
240+ return `${ urlOfInstance . substring ( 0 , urlOfInstance . indexOf ( '.' ) ) } ${ ending } ` ;
230241 }
231242}
You can’t perform that action at this time.
0 commit comments