Skip to content

Commit

Permalink
Merge pull request #1162 from ravichandran-blog/dev
Browse files Browse the repository at this point in the history
Update LocationPicker.tsx
  • Loading branch information
joelfmrodrigues committed Mar 21, 2022
2 parents d2c67e9 + e499b8f commit 3d8655f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controls/locationPicker/LocationPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export class LocationPicker extends React.Component<ILocationPickerProps, ILocat
headers: requestHeaders
};

let response: SPHttpClientResponse = await this.props.context.spHttpClient.post(`${this.props.context.pageContext.web.serverRelativeUrl}/_api/SP.OAuth.Token/Acquire`, SPHttpClient.configurations.v1, spOpts);
let response: SPHttpClientResponse = await this.props.context.spHttpClient.post(`${this.props.context.pageContext.web.absoluteUrl}/_api/SP.OAuth.Token/Acquire`, SPHttpClient.configurations.v1, spOpts);
let PrimaryQueryResult: any = await response.json();
this._token = PrimaryQueryResult.access_token;
}
Expand Down

0 comments on commit 3d8655f

Please sign in to comment.