Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: Customize Share File Link Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
zomebodi
Newbie
Newbie
Avatar

Joined: 12 August 2025
Location: Chile
Online Status: Offline
Posts: 1
Posted: 12 August 2025 at 10:22pm | IP Logged Quote zomebodi

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 View zomebodi's Profile Search for other posts by zomebodi
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6168
Posted: 13 August 2025 at 12:24am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
lynnsargent
Newbie
Newbie
Avatar

Joined: 23 November 2025
Location: United States
Online Status: Offline
Posts: 1
Posted: 23 November 2025 at 5:27pm | IP Logged Quote lynnsargent

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 View lynnsargent's Profile Search for other posts by lynnsargent Visit lynnsargent's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide