modproxy fix
This commit is contained in:
@@ -173,7 +173,7 @@ def runCouchPotato(options, base_path, args, handle = None):
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Static path
|
# Static path
|
||||||
web.add_url_rule(url_base + '/static/<path:filename>',
|
web.add_url_rule('static/<path:filename>',
|
||||||
endpoint = 'static',
|
endpoint = 'static',
|
||||||
view_func = app.send_static_file)
|
view_func = app.send_static_file)
|
||||||
|
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ var Route = new Class({
|
|||||||
parse: function(url_string){
|
parse: function(url_string){
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
var path = History.getPath().replace(Api.getOption('url'), '/') //Remove API front
|
var path = History.getPath().replace(App.getOption('base_url'), '/')
|
||||||
var current = path.replace(/^\/+|\/+$/g, '')
|
var current = path.replace(/^\/+|\/+$/g, '')
|
||||||
var url = current.split('/')
|
var url = current.split('/')
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ var PageBase = new Class({
|
|||||||
if(self.has_tab){
|
if(self.has_tab){
|
||||||
var nav = App.getBlock('navigation');
|
var nav = App.getBlock('navigation');
|
||||||
self.tab = nav.addTab({
|
self.tab = nav.addTab({
|
||||||
'href': '/'+self.name,
|
'href': App.createUrl(self.name),
|
||||||
'title': self.title,
|
'title': self.title,
|
||||||
'text': self.name.capitalize()
|
'text': self.name.capitalize()
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ Page.Settings = new Class({
|
|||||||
var label = (tab.label || tab.name || tab_name).capitalize()
|
var label = (tab.label || tab.name || tab_name).capitalize()
|
||||||
var tab_el = new Element('li.t_'+tab_name).adopt(
|
var tab_el = new Element('li.t_'+tab_name).adopt(
|
||||||
new Element('a', {
|
new Element('a', {
|
||||||
'href': '/'+self.name+'/'+tab_name+'/',
|
'href': App.createUrl(self.name+'/'+tab_name),
|
||||||
'text': label
|
'text': label
|
||||||
}).adopt()
|
}).adopt()
|
||||||
).inject(self.tabs_container);
|
).inject(self.tabs_container);
|
||||||
|
|||||||
Reference in New Issue
Block a user