- Notifications
You must be signed in to change notification settings - Fork906
Commita02ba66
authored
fix: fill session token when app is external (#17708)
Fix#17704During the [refactoring of WorkspaceApp responsetype](https://github.com/coder/coder/pull/17700/files#diff-a7e67944708c3c914a24a02d515a89ecd414bfe61890468dac08abde55ba8e96R112),I updated the logic to check if the session token should be injectedcausing external apps to not load correctly.To also avoid future confusions, we are only going to rely on the`app.external` prop to open apps externally instead of verifying if theURL does not use the HTTP protocol. I did some research and I didn'tfind out a use case where it would be a problem.I'm going to refactor this code very soon to allow opening apps from theworkspaces page, so I will write the tests to cover this use case there.**Not included:**During my next refactoring I'm also going to change the code to supporttoken injections directly in the HREF instead of making it happen duringthe click event.1 parent29bce8d commita02ba66
1 file changed
+1
-6
lines changedLines changed: 1 addition & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
106 | 106 |
| |
107 | 107 |
| |
108 | 108 |
| |
109 |
| - | |
110 |
| - | |
111 |
| - | |
112 |
| - | |
113 |
| - | |
114 |
| - | |
| 109 | + | |
115 | 110 |
| |
116 | 111 |
| |
117 | 112 |
| |
|
0 commit comments
Comments
(0)