mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
New: Support for running from a sub folder (reverse proxy)
This commit is contained in:
parent
cec479923f
commit
b5c9a811dd
22 changed files with 161 additions and 89 deletions
|
|
@ -2,8 +2,9 @@
|
|||
define(
|
||||
[
|
||||
'backbone',
|
||||
'jquery'
|
||||
], function (Backbone,$) {
|
||||
'jquery',
|
||||
'System/StatusModel'
|
||||
], function (Backbone, $, StatusModel) {
|
||||
//This module will automatically route all relative links through backbone router rather than
|
||||
//causing links to reload pages.
|
||||
|
||||
|
|
@ -45,7 +46,9 @@ define(
|
|||
|
||||
|
||||
if (!href.startsWith('http')) {
|
||||
Backbone.history.navigate(href, { trigger: true });
|
||||
var relativeHref = href.replace(StatusModel.get('urlBase'), '');
|
||||
|
||||
Backbone.history.navigate(relativeHref, { trigger: true });
|
||||
}
|
||||
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue