Commit f0a0c263 authored by Christopher Mark Fullarton's avatar Christopher Mark Fullarton
Browse files

Fixes url rewrite of cached assets

parent 9e7ff980
......@@ -62,7 +62,7 @@ export async function MatchAssetCachedQuiz(quiz: IQuiz): Promise<IQuiz> {
export function MatchTextToAssetsDb(value: string): Promise<string> {
const acceptedFileTypes = [/image\/*/];
const foundUrls = value.match(assetsUrlRegex);
const assetsBasePath = `${settings.rewriteAssetCacheUrl}/lib/cache/quiz/assets`;
const assetsBasePath = `${settings.rewriteAssetCacheUrl}/api/lib/cache/quiz/assets`;
return new Promise<string>(resolve => {
if (!foundUrls) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment