| Author |
|
zomebodi Newbie


Joined: 12 August 2025 Location: Chile
Online Status: Offline Posts: 1
|
| Posted: 12 August 2025 at 10:22pm | IP Logged
|
|
|
Is there a way (modifing some php files) to change the domain url on the shared link (when sharing a file on personal files) ??.
|
| Back to Top |
|
| |
Igor AfterLogic Support

Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6168
|
| Posted: 13 August 2025 at 12:24am | IP Logged
|
|
|
I'm afraid there's no easy way to achieve that. If you look at the data returned by the PHP backend - which can be done in browser's console - the link doesn't contain the hostname part and looks like this:
Code:
{
"AuthenticatedUserId": 1,
"@Time": "0.0588",
"Module": "OpenPgpFilesWebclient",
"Method": "CreatePublicLink",
"Result": {
"link": "?\/files-pub\/IO4fJbjjQ0\/list"
},
"SubscriptionsResult": null,
"@TimeApiInit": "0.0350"
} |
|
|
Apparently, JavaScript code creates the actual URL to display it.
--
Regards,
Igor, Afterlogic
|
| Back to Top |
|
| |
lynnsargent Newbie


Joined: 23 November 2025 Location: United States
Online Status: Offline Posts: 1
|
| Posted: 23 November 2025 at 5:27pm | IP Logged
|
|
|
zomebodi wrote:
| Is there a way (modifing some php files) to change the domain url on the shared link (when sharing a file on personal files) ??. |
|
|
You generally can change the domain used in shared links, but not by editing a single PHP file. For most platforms that generate public-share URLs, the domain is pulled from the system’s base URL configuration, not hardcoded templates. If the application is using PHP, the share link is usually assembled from something like the site’s configured base_url, overwrite.cli.url, or a routing helper.
If the software supports overriding the domain, it’s normally done through:
a configuration file (like config.php, settings.php, or .env)
an admin panel setting for the public URL
a reverse proxy setup (NGINX/Apache) rewriting the domain
or a constant that defines the canonical site URL
Editing random PHP files usually breaks updates and doesn’t persist well, so it’s not recommended unless there is a known hook or variable for it.
|
| Back to Top |
|
| |