diff --git a/WebKitBrowser/WebKitImplementation.cpp b/WebKitBrowser/WebKitImplementation.cpp index 63603a86..8f88a312 100644 --- a/WebKitBrowser/WebKitImplementation.cpp +++ b/WebKitBrowser/WebKitImplementation.cpp @@ -2890,7 +2890,8 @@ static GSourceFuncs _handlerIntervention = gchar* indexedDBPath = nullptr; if (_config.IndexedDBPath.IsSet() && !_config.IndexedDBPath.Value().empty()) { - indexedDBPath = g_build_filename(_service->Substitute(_config.IndexedDBPath.Value()), "wpe", "databases", "indexeddb", nullptr); + _config.IndexedDBPath = _service->Substitute(_config.IndexedDBPath.Value()); + indexedDBPath = g_build_filename(_config.IndexedDBPath.Value().c_str(), "wpe", "databases", "indexeddb", nullptr); } else { indexedDBPath = g_build_filename(g_get_user_cache_dir(), "wpe", "databases", "indexeddb", nullptr); }