Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Invoice Ninja
  3. InvoiceNinja: Links don't work on PDF anymore

InvoiceNinja: Links don't work on PDF anymore

Scheduled Pinned Locked Moved Solved Invoice Ninja
22 Posts 5 Posters 3.2k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pHneutre
    wrote on last edited by
    #1

    Hello, first time here. I am hosting InvoiceNinja v5.7.6-C123 on a Cloudron, and <a> links in generated PDFs stopped working all of a sudden, meaning they still appear (blue and underlined) but are not clickable anymore.

    • Unless mistaken, it doesn't seem to come from an IN update (last update in August, stopped working in September).
    • the HTML sent to the PDF generator seems to be well-formed and does contain the proper <a> link.
    • I tried two PDF generators (PDF_GENERATOR=snappdf and PDF_GENERATOR=hosted_ninja), slight output differences but same problem.

    I posted on IN forums, no luck so far.
    Thanks in advance.

    girishG 1 Reply Last reply
    1
    • girishG girish moved this topic from Support on
    • P pHneutre

      Hello, first time here. I am hosting InvoiceNinja v5.7.6-C123 on a Cloudron, and <a> links in generated PDFs stopped working all of a sudden, meaning they still appear (blue and underlined) but are not clickable anymore.

      • Unless mistaken, it doesn't seem to come from an IN update (last update in August, stopped working in September).
      • the HTML sent to the PDF generator seems to be well-formed and does contain the proper <a> link.
      • I tried two PDF generators (PDF_GENERATOR=snappdf and PDF_GENERATOR=hosted_ninja), slight output differences but same problem.

      I posted on IN forums, no luck so far.
      Thanks in advance.

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @pHneutre Have you asked them if they can reproduce the issue? Wondering if this is an app bug or a packaging bug? If it's the former, reporting and following up with the app authors is the best we can do.

      P 1 Reply Last reply
      0
      • nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #3

        The current package is version 5.7.51 are you really running 5.7.6 ? This seems quite old by now.

        There was also just now a new package update which rolls back some pdf route changes, not sure if this is related to the issue.

        1 Reply Last reply
        1
        • nebulonN nebulon marked this topic as a question on
        • girishG girish

          @pHneutre Have you asked them if they can reproduce the issue? Wondering if this is an app bug or a packaging bug? If it's the former, reporting and following up with the app authors is the best we can do.

          P Offline
          P Offline
          pHneutre
          wrote on last edited by
          #4

          @girish said in InvoiceNinja: Links don't work on PDF anymore:

          @pHneutre Have you asked them if they can reproduce the issue? Wondering if this is an app bug or a packaging bug? If it's the former, reporting and following up with the app authors is the best we can do.

          As you can see on the IN forum link, there aren't many answers, and I seem to be the only one reporting this problem. Currently I have no idea if it's a package or upstream bug.

          @nebulon said in InvoiceNinja: Links don't work on PDF anymore:

          The current package is version 5.7.51 are you really running 5.7.6 ? This seems quite old by now.

          There was also just now a new package update which rolls back some pdf route changes, not sure if this is related to the issue.

          Hmm... Autoupdates are enabled and no new version is found:
          Capture d’écran de 2023-11-17 18-21-03.png
          Is there something wrong with the way it looks for updates?

          1 Reply Last reply
          0
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #5

            What version is your Cloudron currently?

            1 Reply Last reply
            0
            • P Offline
              P Offline
              pHneutre
              wrote on last edited by pHneutre
              #6

              Sorry for the delay: after talking to my cloudron superadmin, our cloudron was version 7.4.3 and we saw that updates were not automatically installed because of lack of disk space. Incidentally, we saw that the superadmin was able to see updates available for IN, contrary to me. Is it the expected behavior? Looks like a bug or a design flaw to me because "no new updates available" is misleading. (Should I open another subject or ticket for this matter?)

              Now we updated cloudron (7.6.1) and IN (now 5.7.55) and the problem I described is still there.

              1 Reply Last reply
              0
              • nebulonN Offline
                nebulonN Offline
                nebulon
                Staff
                wrote on last edited by
                #7

                At least between admin and superadmin there is no difference with regards to the app updates, not sure why this has happened.

                Tried to reproduce this in our instance, but tbh I don't even know how to add links in the invoice.

                P 1 Reply Last reply
                0
                • robiR Offline
                  robiR Offline
                  robi
                  wrote on last edited by
                  #8

                  Perhaps this is more related to the PDF viewer.

                  Feel free to provide a PDF sample with a clickable link.

                  Conscious tech

                  1 Reply Last reply
                  0
                  • nebulonN nebulon

                    At least between admin and superadmin there is no difference with regards to the app updates, not sure why this has happened.

                    Tried to reproduce this in our instance, but tbh I don't even know how to add links in the invoice.

                    P Offline
                    P Offline
                    pHneutre
                    wrote on last edited by
                    #9

                    @nebulon said in InvoiceNinja: Links don't work on PDF anymore:

                    At least between admin and superadmin there is no difference with regards to the app updates, not sure why this has happened.

                    I'm not sure I am an "admin", I'm not used to cloudron's rights management, but I have rights to manage users and mailboxes. 🤷

                    Tried to reproduce this in our instance, but tbh I don't even know how to add links in the invoice.

                    To edit the invoice template in IN: Parameters > Advanced > Invoice template (or model?) > Customize > select your template > Edit
                    To add a link: "body" tab and add it in the HTML as a <a href=""> tag.

                    @robi said in InvoiceNinja: Links don't work on PDF anymore:

                    Perhaps this is more related to the PDF viewer.
                    Feel free to provide a PDF sample with a clickable link.

                    Here's a PDF with a clickable link. Real-life invoice so discretion advised please. Link will expire on the 22nd of dec for now.

                    robiR jdaviescoatesJ 2 Replies Last reply
                    0
                    • P pHneutre

                      @nebulon said in InvoiceNinja: Links don't work on PDF anymore:

                      At least between admin and superadmin there is no difference with regards to the app updates, not sure why this has happened.

                      I'm not sure I am an "admin", I'm not used to cloudron's rights management, but I have rights to manage users and mailboxes. 🤷

                      Tried to reproduce this in our instance, but tbh I don't even know how to add links in the invoice.

                      To edit the invoice template in IN: Parameters > Advanced > Invoice template (or model?) > Customize > select your template > Edit
                      To add a link: "body" tab and add it in the HTML as a <a href=""> tag.

                      @robi said in InvoiceNinja: Links don't work on PDF anymore:

                      Perhaps this is more related to the PDF viewer.
                      Feel free to provide a PDF sample with a clickable link.

                      Here's a PDF with a clickable link. Real-life invoice so discretion advised please. Link will expire on the 22nd of dec for now.

                      robiR Offline
                      robiR Offline
                      robi
                      wrote on last edited by robi
                      #10

                      @pHneutre said in InvoiceNinja: Links don't work on PDF anymore:

                      Here's a PDF with a clickable link

                      The link at the top of the PDF doc is clickable and leads to here for me in my Vivaldi browser.

                      Conscious tech

                      1 Reply Last reply
                      1
                      • girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by
                        #11

                        Right, same for me. I can click the link in the PDF just fine on Firefox.

                        1 Reply Last reply
                        0
                        • P Offline
                          P Offline
                          pHneutre
                          wrote on last edited by
                          #12

                          Why yes, I have been asked for a PDF with a clickable link so I provided 😅 . Now for an unclickable link (which does sound more appropriate indeed) (same expiration date).

                          1 Reply Last reply
                          1
                          • robiR Offline
                            robiR Offline
                            robi
                            wrote on last edited by
                            #13

                            That is just underlined text, and not a link from my perspective (browser and Foxit Phantom PDF).

                            Conscious tech

                            girishG 1 Reply Last reply
                            1
                            • robiR robi

                              That is just underlined text, and not a link from my perspective (browser and Foxit Phantom PDF).

                              girishG Offline
                              girishG Offline
                              girish
                              Staff
                              wrote on last edited by
                              #14

                              @robi I think that's the bug, that invoiceninja is not creating links and instead creating underlines (maybe?)

                              1 Reply Last reply
                              1
                              • P pHneutre

                                @nebulon said in InvoiceNinja: Links don't work on PDF anymore:

                                At least between admin and superadmin there is no difference with regards to the app updates, not sure why this has happened.

                                I'm not sure I am an "admin", I'm not used to cloudron's rights management, but I have rights to manage users and mailboxes. 🤷

                                Tried to reproduce this in our instance, but tbh I don't even know how to add links in the invoice.

                                To edit the invoice template in IN: Parameters > Advanced > Invoice template (or model?) > Customize > select your template > Edit
                                To add a link: "body" tab and add it in the HTML as a <a href=""> tag.

                                @robi said in InvoiceNinja: Links don't work on PDF anymore:

                                Perhaps this is more related to the PDF viewer.
                                Feel free to provide a PDF sample with a clickable link.

                                Here's a PDF with a clickable link. Real-life invoice so discretion advised please. Link will expire on the 22nd of dec for now.

                                jdaviescoatesJ Online
                                jdaviescoatesJ Online
                                jdaviescoates
                                wrote on last edited by jdaviescoates
                                #15

                                @pHneutre said in InvoiceNinja: Links don't work on PDF anymore:

                                To edit the invoice template in IN: Parameters > Advanced > Invoice template (or model?) > Customize > select your template > Edit
                                To add a link: "body" tab and add it in the HTML as a <a href=""> tag.

                                I guess you're working in a non English language as I couldn't see anything about Parameters etc.

                                But I did just do this and links seemed to work fine:

                                Settings -> Invoice Design -> Custom Designs -> created a new custom design using Playful as the basis, then edited the Body to add a link and it worked:

                                02638be7-1bbe-48f9-8151-4f174be69d22-image.png

                                PDF invoice with working link

                                I use Cloudron with Gandi & Hetzner

                                P 1 Reply Last reply
                                1
                                • jdaviescoatesJ jdaviescoates

                                  @pHneutre said in InvoiceNinja: Links don't work on PDF anymore:

                                  To edit the invoice template in IN: Parameters > Advanced > Invoice template (or model?) > Customize > select your template > Edit
                                  To add a link: "body" tab and add it in the HTML as a <a href=""> tag.

                                  I guess you're working in a non English language as I couldn't see anything about Parameters etc.

                                  But I did just do this and links seemed to work fine:

                                  Settings -> Invoice Design -> Custom Designs -> created a new custom design using Playful as the basis, then edited the Body to add a link and it worked:

                                  02638be7-1bbe-48f9-8151-4f174be69d22-image.png

                                  PDF invoice with working link

                                  P Offline
                                  P Offline
                                  pHneutre
                                  wrote on last edited by
                                  #16

                                  @jdaviescoates Yes these were on-the-fly translations. And it seems that you couldn't reproduce my problem. Thanks for checking.

                                  1 Reply Last reply
                                  1
                                  • nebulonN Offline
                                    nebulonN Offline
                                    nebulon
                                    Staff
                                    wrote on last edited by
                                    #17

                                    I looked into this again and found that the href="" attribute needs to have a schema set. So https:// for example to render a clickable link. Maybe this is the difference? A browser would render it without a schema but maybe PDF viewers behave slightly different here.

                                    P 1 Reply Last reply
                                    0
                                    • nebulonN nebulon

                                      I looked into this again and found that the href="" attribute needs to have a schema set. So https:// for example to render a clickable link. Maybe this is the difference? A browser would render it without a schema but maybe PDF viewers behave slightly different here.

                                      P Offline
                                      P Offline
                                      pHneutre
                                      wrote on last edited by
                                      #18

                                      @nebulon No luck. I always created links with a schema, and IN built-in links parameters (such as $view_url) don't work either. Plus, if you open the unclickable PDF with a PDF editor, no link is detected at all.

                                      1 Reply Last reply
                                      0
                                      • girishG Offline
                                        girishG Offline
                                        girish
                                        Staff
                                        wrote on last edited by
                                        #19

                                        I tried adding a footer and that does work as well:

                                        image.png

                                        1 Reply Last reply
                                        0
                                        • nebulonN Offline
                                          nebulonN Offline
                                          nebulon
                                          Staff
                                          wrote on last edited by
                                          #20

                                          I think we are running out of ideas what the difference between the instances is.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Bookmarks
                                          • Search