mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
New: Support for running from a sub folder (reverse proxy)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user