ResourceManager : bug fix
authorSeungkeun Lee <sngn.lee@samsung.com>
Tue, 28 Apr 2015 05:18:01 +0000 (14:18 +0900)
committerSeungkeun Lee <sngn.lee@samsung.com>
Tue, 28 Apr 2015 05:18:01 +0000 (14:18 +0900)
 - returing relative path when can't found start page

Change-Id: I157962b68290c4ddee846b2b2790a5bde268dfe3

src/runtime/resource_manager.cc

index beb7f67..d80fffe 100755 (executable)
@@ -186,11 +186,11 @@ std::string ResourceManager::GetDefaultOrEmpty() {
   // if there is no content src, find reserved index files
   for (auto& start_file : kDefaultStartFiles) {
     if (utils::Exists(resource_base_path_ + start_file)) {
-      default_src = resource_base_path_ + start_file;
+      default_src = start_file;
     }
   }
 
-  return default_src;
+  return InsertPrefixPath(default_src);
 }
 
 std::string ResourceManager::GetMatchedSrcOrUri(