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. Rallly
  3. URL for open graph tag incorrect

URL for open graph tag incorrect

Scheduled Pinned Locked Moved Solved Rallly
9 Posts 4 Posters 1.4k Views 4 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.
  • andreasduerenA Offline
    andreasduerenA Offline
    andreasdueren
    wrote on last edited by
    #1

    Currently the URL and image URL for the OG Tag are incorrect and therefore won't load.

    is:

    <meta property="og:url" content="http://localhost:3000">
    <meta property="og:type" content="website">
    <meta property="og:image" content="http://localhost:3000/og-image-1200.png">
    

    should be:

    <meta property="og:url" content="https://tld.url">
    <meta property="og:type" content="website">
    <meta property="og:image" content="/og-image-1200.png">
    

    Screenshot 2022-12-31 at 10.50.09.png

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

      Looking through the code it seems we have to set some env variable for this as the urls are produced via https://github.com/lukevella/rallly/blob/main/src/utils/absolute-url.ts#L7

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

        Looking through the code it seems we have to set some env variable for this as the urls are produced via https://github.com/lukevella/rallly/blob/main/src/utils/absolute-url.ts#L7

        andreasduerenA Offline
        andreasduerenA Offline
        andreasdueren
        wrote on last edited by andreasdueren
        #3

        @nebulon Thats strange since that is not a suggested env and it's properly rendered on the rallly.co website. I opened a github issue.

        girishG 1 Reply Last reply
        2
        • andreasduerenA andreasdueren

          @nebulon Thats strange since that is not a suggested env and it's properly rendered on the rallly.co website. I opened a github issue.

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

          @andreasdueren this is suggested in https://github.com/lukevella/rallly/blob/2c4157ea244a5eee05f25690346a9d6261d5c574/sample.env#L1 atleast. Looks like a packaging issue.

          M 1 Reply Last reply
          1
          • girishG girish

            @andreasdueren this is suggested in https://github.com/lukevella/rallly/blob/2c4157ea244a5eee05f25690346a9d6261d5c574/sample.env#L1 atleast. Looks like a packaging issue.

            M Offline
            M Offline
            msbt
            App Dev
            wrote on last edited by msbt
            #5

            @girish my original version works properly (also changing the language and such), I reckon the app needs to be able to write somewhere after changing things

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

              Our package actually already sets this correctly at https://git.cloudron.io/cloudron/rallly-app/-/blob/main/start.sh#L32

              Seems like this needs further debugging why that value is not picked up correctly here.

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

                I have commented in the upstream github issue about this. Basically we build the static assets for the app during Docker image build and thus the env variable for generating the websites is not yet set and anyways may change over time.

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

                  This got fixed upstream in https://github.com/lukevella/rallly/issues/378 and Cloudron package will pick this up in the coming release.

                  andreasduerenA 1 Reply Last reply
                  2
                  • girishG girish

                    This got fixed upstream in https://github.com/lukevella/rallly/issues/378 and Cloudron package will pick this up in the coming release.

                    andreasduerenA Offline
                    andreasduerenA Offline
                    andreasdueren
                    wrote on last edited by
                    #9

                    @girish Nice thanks!

                    1 Reply Last reply
                    0
                    • nebulonN nebulon has marked this topic as solved on
                    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