Commit 804bc56
committed
Use full REST API URL (with index.php)
"Nice" REST API URLs are configured in MantisBT api/rest/.htaccess
file. If the Apache setup does not allow overrides, then the web server
will return 404 errors because mod_rewrite is not enabled.
To avoid issues on sites where URL rewriting does not work, we use the
full URL with index.php for AJAX requests, i.e.
http://example.com/mantis/api/rest/index.php/plugins/Snippets/...
instead of the "nice" URL
http://example.com/mantis/api/rest/plugins/Snippets/...
Fixes #311 parent efd4fc3 commit 804bc56
2 files changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
11 | 19 | | |
12 | 20 | | |
13 | 21 | | |
| |||
184 | 192 | | |
185 | 193 | | |
186 | 194 | | |
| 195 | + | |
187 | 196 | | |
188 | 197 | | |
189 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
0 commit comments