Commit dda77f4
authored
[ResponseOps][Rules] Rules list: middle-click / "Open in new tab" navigates to Default space instead of current space (elastic#261489)
Closes elastic#260053
## Summary
The rule detail `href` was built using string concatenation, resulting
in: `/app/rules/rule/<id>` path without the `/s/<spaceId>` preffix.
Middle-click/"Open in new tab" bypasses the SPA router and follows the
raw href, causing a `rule not found` error in non-default spaces.
- fixed by using `getUrlForApp` which includes the space prefix and the
base path.1 parent d425646 commit dda77f4
1 file changed
Lines changed: 9 additions & 7 deletions
File tree
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 13 | + | |
17 | 14 | | |
18 | 15 | | |
19 | 16 | | |
| |||
38 | 35 | | |
39 | 36 | | |
40 | 37 | | |
| 38 | + | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
| |||
252 | 250 | | |
253 | 251 | | |
254 | 252 | | |
255 | | - | |
256 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
257 | 256 | | |
258 | 257 | | |
259 | 258 | | |
| |||
423 | 422 | | |
424 | 423 | | |
425 | 424 | | |
426 | | - | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
427 | 428 | | |
428 | 429 | | |
429 | 430 | | |
| |||
906 | 907 | | |
907 | 908 | | |
908 | 909 | | |
| 910 | + | |
909 | 911 | | |
910 | 912 | | |
911 | 913 | | |
| |||
0 commit comments