This topic is locked
[SOLVED]

External Link with dynamic host name

8/4/2024 11:21:57 AM
PHPRunner General questions
J
jacktonghk authorDevClub member

Is it possible to build the URL dynamically with a host variable + fixed directory? like 'https://variablehost/myproject/login.php which variablehost is a variable. Thanks.

Jack Tong

Sergey Kornilov 8/5/2024

Yes, something like this is certainly possible. Could you explain what exactly causes the trouble achieving this objective?

J
jacktonghk authorDevClub member 8/7/2024

I managed to do it with a custom button. But I want to use a menu item to link to external URL, how can I achieve it? Because it seems the URL should be a constant in order to work

Sergey Kornilov 8/7/2024

As @cristi suggests, ModifyMenu event is what you looking for. You can override any existing menu item label or URL using this event.

J
jacktonghk authorDevClub member 8/9/2024

Got it. Thank you cristi & Sergey!!