Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: andycee on March 14, 2025, 08:25:21 AM

Title: Is it possible to deep link to compose and make window popout?
Post by: andycee on March 14, 2025, 08:25:21 AM
We're using rcm within our web app and have a lookalike sidebar, this all works ok. However if user has compose in new window set then clicks on the rcm compose icon, this works as expected, however our compose button just navigates to the compose action (i.e. /rcm/?_task=mail&_action=compose) and composes within the window.

Is there a way to pass something on the query string to make this happen or could we maybe modify one of the php pages to do this?

Alternatively we would have to query rcm db beforehand to see user prefs and then open URL in our own popup, but then we'd lose plugin events and such.

Thanks,
Andy
Title: Re: Is it possible to deep link to compose and make window popout?
Post by: JohnDoh on March 15, 2025, 05:23:08 AM
you wont be able to do that just by url, as you said you need to know the user preference. you could write a small plugin which would make a JS call to the compose command though.