Commit a46e3a2
authored
fix: use window.location.origin as fallback for API URL copy (#15220)
In the API tab, if a `serverURL` wasn't provided in the Payload config,
the URL shown would be relative. This fix uses `window.location.origin`
as a fallback if `serverURL` is not provided.
<img width="737" height="229" alt="image"
src="https://github.com/user-attachments/assets/7d36843b-1edc-447b-83c4-677df5e0c784"
/>1 parent f1f2be6 commit a46e3a2
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| 87 | + | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| |||
0 commit comments