Fixed: V5 changes

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
When you go into the admin panel under Files, you click on the Download button, it takes you to the Fileserver URL to download when it should be the URL of your primary site. Same thing happens when you get the file download URL's after uploading files.
eg: Download URL should be https://www.website.com but it shows https://fileserver.website.com

Also, the file download page where we have Page link, HTML code, Forum code, etc. should show the URL for the main site, not the fileserver.

Thanks
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
When you go into the admin panel under Files, you click on the Download button, it takes you to the Fileserver URL to download when it should be the URL of your primary site. Same thing happens when you get the file download URL's after uploading files.
eg: Download URL should be https://www.website.com but it shows https://fileserver.website.com

Also, the file download page where we have Page link, HTML code, Forum code, etc. should show the URL for the main site, not the fileserver.
I've fixed this one for the next release. The fix is fairly simple if you want to patch it in. Execute this on your DB:

UPDATE file_server SET routeViaMainSite = 1 WHERE serverType = 'direct';

Then in "\app\controllers\admin\ServerController.class.php" find:

$route_via_main_site = (int) $request->request->get('route_via_main_site');

Replace with:

$route_via_main_site = 1;

Purge the application cache after any changes.

The v5 release removed the "route via main site" dropdown as a configuration option, it should always be enabled.

Thanks,
Adam.
 
  • Like
Reactions: vanzi