ferdium-app icon indicating copy to clipboard operation
ferdium-app copied to clipboard

Still failing in open a link on default browser

Open gilbertoferreira opened this issue 5 months ago • 10 comments

Avoid duplicates

  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issues tracker for a bug report similar to mine, in vain

Ferdium Version

Ferdium-linux-Portable-7.1.1-nightly.2-x86_64.appimage

What Operating System are you using?

Other Linux

Operating System Version

Kubuntu 25.04

What arch are you using?

x64

Last Known Working Ferdium version

Ferdium-linux-Portable-7.1.1-nightly.2-x86_64.appimage

Expected Behavior

Would likoe to open a link on the default browser, please.

Actual Behavior

Got this error:

Image

Steps to reproduce

1 - Open Ferdium 2 - click on the web link 3 - got https://web.telegram.org/a/[object%20Object]

Debug link

No response

Screenshots

Image

Additional information

Operating System: Kubuntu 25.04 KDE Plasma Version: 6.4.3 KDE Frameworks Version: 6.14.0 Qt Version: 6.8.3 Kernel Version: 6.15.7-x64v3-xanmod1 (64-bit) Graphics Platform: X11 Processors: 12 × AMD Ryzen 5 5625U with Radeon Graphics Memory: 64 GiB of RAM (62.2 GiB usable) Graphics Processor: AMD Radeon Graphics Manufacturer: Positivo Bahia - VAIO Product Name: VJFE69F11X-B0411H

gilbertoferreira avatar Jul 25 '25 11:07 gilbertoferreira

This is an issue for me as well in W11 with Ferdium v7.1.0

Vasmar93 avatar Jul 26 '25 17:07 Vasmar93

This is an issue for me as well in Ubuntu 24.02 with Ferdium v7.1.0

vtyrtov avatar Jul 31 '25 08:07 vtyrtov

Well... My own fix was to used an old version of Ferdium: 6.2.6 works fine openning the link in the default browser.

Thank you anyway.

gilbertoferreira avatar Aug 23 '25 19:08 gilbertoferreira

Why would you close a bug report that hasn't been fixed? A workaround is not a solution.

Vasmar93 avatar Aug 24 '25 01:08 Vasmar93

Just an update. Version 6.2.6 doesn't work anymore. But with new version I noteiced that right click and choose Open Link works fine. However, if I click directly the links doesn't work.

gilbertoferreira avatar Aug 28 '25 15:08 gilbertoferreira

Found a workaround. Right click on Telegram service in Ferdium, click "Edit", click on "Open user.js" button, open and edit "user.js" file, delete existing code and paste the code below, save the file and reload Telegram in Ferdium:

module.exports = (config, Ferdium) => {
  document.addEventListener(
    'click',
    event => {
      const link = event.target.closest('a[href^="http"]');
      const button = event.target.closest('button[title^="http"]');

      if (link || button) {
        const url = link
          ? link.getAttribute('href')
          : button.getAttribute('title');

        event.preventDefault();
        event.stopPropagation();

        window.open(url);
      }
    },
    true,
  );
};

represiv avatar Oct 15 '25 11:10 represiv

Can confirm that @represiv 's workaround solves the issue. Alternatively, if you click on links using the wheel click, they open correctly as well without making any modifications.

Vasmar93 avatar Oct 15 '25 12:10 Vasmar93

Found a workaround. Right click on Telegram service in Ferdium, click "Edit", click on "Open user.js" button, open and edit "user.js" file, delete existing code and paste the code below, save the file and reload Telegram in Ferdium:

module.exports = (config, Ferdium) => { document.addEventListener( 'click', event => { const link = event.target.closest('a[href^="http"]'); const button = event.target.closest('button[title^="http"]');

  if (link || button) {
    const url = link
      ? link.getAttribute('href')
      : button.getAttribute('title');

    event.preventDefault();
    event.stopPropagation();

    window.open(url);
  }
},
true,

); };

Works fine. Thanks

gilbertoferreira avatar Oct 29 '25 20:10 gilbertoferreira

It worked for me too :) Thanks @represiv

vengador avatar Oct 30 '25 06:10 vengador

This solution makes jumping from A to K version impossible. After changing to A we are stuck there.

teras avatar Oct 30 '25 11:10 teras

thannks for the workaround . works for me on Version 7.1.1 on Fedora 43

paoloantinori avatar Dec 02 '25 16:12 paoloantinori

Found a workaround. Right click on Telegram service in Ferdium, click "Edit", click on "Open user.js" button, open and edit "user.js" file, delete existing code and paste the code below, save the file and reload Telegram in Ferdium:

There's one more issue with this solution. Let's take for example this case:

Image

On the top is the pasted link, then there's a preview text (which is also clickable) and then an image. The pasted link works. The image preview works. What it doesn't work is the (clickable) preview text. Since most of the time the preview text has more screen estate than the original link, it's common to click accidentally on the text and again have the "404" error. Is it possible to grab the even on this area too?

teras avatar Dec 02 '25 18:12 teras