Skip to content

Commit

Permalink
add trailing slash to apiUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
gumaerc committed Feb 5, 2024
1 parent 307d9e2 commit 056de93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function initLoginButton(
) {
const container = document.getElementById(containerId)
const parsedBaseUrl = new URL(baseUrl)
const apiUrl = `${parsedBaseUrl.origin}/api/v0/users/me?format=json`
const apiUrl = `${parsedBaseUrl.origin}/api/v0/users/me/?format=json`
const loginUrl = `${parsedBaseUrl.origin}/login/ol-oidc/`
fetch(apiUrl, {
method: "GET",
Expand Down

0 comments on commit 056de93

Please sign in to comment.