File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ export class AzureResourceManagementService {
64
64
}
65
65
66
66
public async loadSessionSettings ( ) : Promise < void > {
67
- const url = new URL ( location . href ) ;
67
+ const url = new URL ( location . href . toLowerCase ( ) ) ;
68
68
const subscriptionId = this . getStoredSetting ( url , SettingNames . subscriptionId ) ;
69
69
const resourceGroupName = this . getStoredSetting ( url , SettingNames . resourceGroupName ) ;
70
70
const serviceName = this . getStoredSetting ( url , SettingNames . serviceName ) ;
@@ -80,13 +80,14 @@ export class AzureResourceManagementService {
80
80
const managementApiUrl = `https://${ armEndpoint } /subscriptions/${ subscriptionId } /resourceGroups/${ resourceGroupName } /providers/Microsoft.ApiManagement/service/${ serviceName } ` ;
81
81
await this . settingsProvider . setSetting ( SettingNames . managementApiUrl , managementApiUrl ) ;
82
82
await this . settingsProvider . setSetting ( SettingNames . backendUrl , `https://${ serviceName } .developer.azure-api.net` ) ;
83
- if ( url . searchParams . has ( SettingNames . subscriptionId ) ) {
83
+ if ( url . searchParams . has ( SettingNames . subscriptionId . toLowerCase ( ) ) ) {
84
84
location . href = location . origin + location . pathname ;
85
85
}
86
86
}
87
87
}
88
88
89
89
private getStoredSetting ( url : URL , settingName : string ) : string {
90
+ settingName = settingName . toLowerCase ( ) ;
90
91
let settingValue = url . searchParams . get ( settingName ) ;
91
92
if ( settingValue ) {
92
93
settingValue = decodeURIComponent ( settingValue ) ;
You can’t perform that action at this time.
0 commit comments