update J3 to J4 update links broken

Phoca Download - download manager
leonleon
Phoca Member
Phoca Member
Posts: 23
Joined: 15 Aug 2012, 20:55

update J3 to J4 update links broken

Post by leonleon »

Hi
I am moving site under J3 v 3.10.10 PD version 3.1.4
to Joomla 4.1.5 PD version 4.0.2
I omitted the h at start of link to get full chain display
Links are broken in J4

in J3 link on Download
ttp://localhost:8888/francoisJ4/category/5-4-octobre-fete-de-saint-francois?download=15
in J3 link in a page
category/5-4-octobre-fete-de-saint-francois?download=15

In J4 link on Download
ttp://localhost:8888/francois/a-telecharger/5-4-octobre-fete-de-saint-francois?download=15
In J4 link in a page
ttp://localhost:8888/francois/category/5-4-octobre-fete-de-saint-francois?download=15

Note 'a-telecharger' is the name of download page entry, the same as in J3
What could be the reason of broken links ?
Is there a way to fix this globally not editing each link in each page ?
Thank you.
leonleon
Phoca Member
Phoca Member
Posts: 23
Joined: 15 Aug 2012, 20:55

Re: update J3 to J4 update links broken

Post by leonleon »

Something more

on J4 .epub and .azw3 download links leads to Erreur
Downloading file error (MIME type not found)

If I set error report in Joomla 4
erase cache
refresh download page
recclick on .ew3 link
nothing change in log and logs.

do you have any idea about the problem origin ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: update J3 to J4 update links broken

Post by Jan »

Hi, first of all, SEF URLs changed in Joomla 4 so they will be different, but this is much more a question on Joomla core developers.

Do you use one menu link - menu link to Phoca Download categories? Or do you use more menu links?

Are .epub and azw3 file mime types listed in allowed file mime type in Phoca Download options.

Jan
If you find Phoca extensions useful, please support the project
leonleon
Phoca Member
Phoca Member
Posts: 23
Joined: 15 Aug 2012, 20:55

Re: update J3 to J4 update links broken

Post by leonleon »

Hi Jan
thank you for your answer.
About your first point I have a section named Download, where visitor can access at different categories and in each category he can select the document he wants to download (as usual)
But into the site other pages, I put links to relevant document; So if visitor is interested, clicking the link leads him to the doc in a new window.
Moving to J4, those embedded links into site pages must be edited one by one for each web site and this is....time consuming.
But I do it, no choice.

Now second point, I already did a visit In PD parameters download options.
They are not listed but I didn't know how to do it..
I did a try, adding {epub=application/calibre}{azw3=application/calibre} in the list and it works.
If it can help others
This solve my last problem.
Thanks Jan
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: update J3 to J4 update links broken

Post by Jan »

Hi,
Moving to J4, those embedded links into site pages must be edited one by one for each web site and this is....time consuming.
Yes, :-(, unfortunately there is a new router in Joomla which breaks the backward compatibility :-( Similar to this issue: https://github.com/joomla/joomla-cms/discussions/37722

Mime types: great to hear it.

Jan
If you find Phoca extensions useful, please support the project
Post Reply