Propagate theme in modules relative URLs

This commit is contained in:
Francis Lachapelle
2014-11-14 14:50:13 -05:00
parent 5ee53bffd3
commit 37851d89f3
+5 -1
View File
@@ -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;
}