mirror of
https://github.com/wekan/wekan.git
synced 2026-02-25 09:24:08 +01:00
Reverted New UI Design of WeKan v8.29 and added more fixes and performance improvements.
Thanks to xet7 !
This commit is contained in:
parent
d152d8fc1b
commit
1b8b8d2eef
196 changed files with 17659 additions and 10028 deletions
|
|
@ -61,10 +61,10 @@ export function cleanFileUrl(url, type) {
|
|||
|
||||
// Remove any domain, port, or protocol from the URL
|
||||
let cleanUrl = url;
|
||||
|
||||
|
||||
// Remove protocol and domain
|
||||
cleanUrl = cleanUrl.replace(/^https?:\/\/[^\/]+/, '');
|
||||
|
||||
|
||||
// Remove ROOT_URL pathname if present
|
||||
if (Meteor.isServer && process.env.ROOT_URL) {
|
||||
try {
|
||||
|
|
@ -79,7 +79,7 @@ export function cleanFileUrl(url, type) {
|
|||
|
||||
// Normalize path separators
|
||||
cleanUrl = cleanUrl.replace(/\/+/g, '/');
|
||||
|
||||
|
||||
// Ensure URL starts with /
|
||||
if (!cleanUrl.startsWith('/')) {
|
||||
cleanUrl = '/' + cleanUrl;
|
||||
|
|
@ -176,13 +176,13 @@ export function getAllPossibleUrls(fileId, type) {
|
|||
}
|
||||
|
||||
const urls = [];
|
||||
|
||||
|
||||
// Primary URL
|
||||
urls.push(generateUniversalFileUrl(fileId, type));
|
||||
|
||||
|
||||
// Fallback URL
|
||||
urls.push(generateFallbackUrl(fileId, type));
|
||||
|
||||
|
||||
// Legacy URLs for backward compatibility
|
||||
if (type === 'attachment') {
|
||||
urls.push(`/cfs/files/attachments/${fileId}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue