From 37851d89f385a4571d251cb3a73f5d14e140d5de Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Fri, 14 Nov 2014 14:50:13 -0500 Subject: [PATCH] Propagate theme in modules relative URLs --- UI/SOGoUI/UIxComponent.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/UI/SOGoUI/UIxComponent.m b/UI/SOGoUI/UIxComponent.m index 25cecc79a..cc0397815 100644 --- a/UI/SOGoUI/UIxComponent.m +++ b/UI/SOGoUI/UIxComponent.m @@ -413,11 +413,15 @@ static SoProduct *commonProduct = nil; - (NSString *) relativePathToUserFolderSubPath: (NSString *) _sub { - NSString *dst, *rel; + NSString *dst, *rel, *theme; dst = [[self userFolderPath] stringByAppendingPathComponent: _sub]; rel = [dst urlPathRelativeToPath:[self ownPath]]; + theme = [[context request] formValueForKey: @"theme"]; + if ([theme length]) + rel = [NSString stringWithFormat: @"%@?theme=%@", rel, theme]; + return rel; }