mirror of
https://github.com/directus/directus.git
synced 2026-01-29 08:17:55 -05:00
Don't stage empty ? in img url
This commit is contained in:
@@ -281,7 +281,9 @@ export default defineComponent({
|
||||
params.set('access_token', token);
|
||||
}
|
||||
|
||||
return `${pre}${matched.origin}${matched.pathname}?${params.toString()}${post}`;
|
||||
const paramsString = params.toString().length > 0 ? `?${params.toString()}` : '';
|
||||
|
||||
return `${pre}${matched.origin}${matched.pathname}${paramsString}${post}`;
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user