Page 1 of 1

Random file names after upgrade to Joomla 4

Posted: 06 Jul 2022, 08:35
by mirekjl
Hello. I have migrated Phoca Download to version 4.0.2 in a Joomla migrated from 3.10.10 to 4.1.5. I have done this twice following the rules from https://www.phoca.cz/documents/50-jooml ... o-joomla-4.

The files can be downloaded, however there is one confusing thing. Each file got a misleading title, beacause a name of a random file stuck to the original name. The random names were different each time. It looks like this:

The name of the migrated file:
sitename/index.php/the_name_of_a_random_file_from_transferred_files?view=category&download=1933:the_title_of_the_original_file&id=146:the_name_of_the_subcategory

The name of the original file:
sitename/index.php/2021-22/category/146-the_name_of_the_subcategory?download=1933:the_title_of_the_original_file

The categories and files systemm looks like this:
upper category (ie. a year) > category (ie. a month) > subcategory (ie. a week) > file (ie. a day)

The debug mode is on and shows nothing here, because the files can be downloaded from the categories (altough with the misleading title).

Is it possible to fix this issue?
Kind regards, Mirek.

Re: Random file names after upgrade to Joomla 4

Posted: 06 Jul 2022, 13:57
by Jan
Hi, sorry, I don't understand what do you mean with random names? What part of system changed your titles?

In Joomla 4, the system router changed (but for SEF links only, not for standard links) but URLs do not somehow change the name of files or categories or menu links :idea:

After index.php there is mostly a menu link alias, so try to check if the menu links are the same for the new site like for the original site. :idea:

Jan

Re: Random file names after upgrade to Joomla 4

Posted: 06 Jul 2022, 16:03
by mirekjl
Hello.
This is original website:
website/index.php/2021-2022/category/149-z-zycia-szkoly?download=2124:osiagniecia-uczniow

This is migrated website:
website/index.php/plan-lekcji?view=category&download=2124:osiagniecia-uczniow&id=149:z-zycia-szkoly

plan-lekcji is a text added to every file in every category and it's a name of one of the uploaded files.

Regards, Mirek

Re: Random file names after upgrade to Joomla 4

Posted: 06 Jul 2022, 16:57
by Jan
Hi, what is the menu link name? The second link looks like no SEF link. "plan-lekcji" should be the menu alias. :idea:

Jan

Re: Random file names after upgrade to Joomla 4

Posted: 07 Jul 2022, 08:23
by mirekjl
Hello.
It looks like the name of an uploaded file replaces the right name of a category. In this example plan-lekcji is the name of an uploaded file.

The link should be:
website/index.php/2021-2022?view=category&download=2124:osiagniecia-uczniow&id=149:z-zycia-szkoly

The link is:
website/index.php/plan-lekcji?view=category&download=2124:osiagniecia-uczniow&id=149:z-zycia-szkoly

But the current link is downloadable anyway.

SEF is on.
Regards, Mirek

Re: Random file names after upgrade to Joomla 4

Posted: 08 Jul 2022, 21:20
by Jan
Hi, testing now and get everything all right on my test servers, really hard to say what can be wrong there :idea:

Jan