Comments (11)
Seems like
1 Dynamic Link Preview works fine
2 Shortened URLs Link Previews are dead
on the way to fix đ
from formbricks.
hmm @mattinannt maybe you have an idea?
// can confirm the normal preview generation works :)
from formbricks.
@adityadeshlahre Yes, this is the right endpoint for generating the image :-)
The image from the og endpoint is used in the generateMetadata
function of the /s/[surveyId]
page:
So one thing you could try is to also add a generateMetadata
function to apps/web/app/[shortUrlId]/page.tsx
.
But this may lead to duplicated code and issues since we also need to query all the data in the shortUrl redirect. There might be a better option where we can reference the content of the redirected page in the meta data so we tell the preview loaders where to look for the meta data. See this stackOverflow thread for an example:
https://stackoverflow.com/questions/54160345/how-to-make-open-graph-links-work-with-301-redirects
from formbricks.
@adityadeshlahre No worries, thanks for trying to solve it đđĒ
from formbricks.
i would like to give it a try đ !
from formbricks.
Sure, go for it @adityadeshlahre đđ
from formbricks.
@adityadeshlahre any updates? :)
from formbricks.
Hey @jobenjada @Dhruwang
really sorry for late replay
i am still trying to fix the bug !
I got to know which component is responsable for image generation [file]
but stuck on how the file is getting called at time of publishing New Survey
For now preview image generation is only happening for main /s/[surveyId] link only
and not for the short URL /[shortUrlId] link.
[maybe be VERCEL og-image-generation doesn't work for shortURL because lack of Metadata/Props](might am wrong here)
on shorting [main URL] from different URL shorting service its PREVIEW-IMAGE working fine.
need more lights on the bug !
from formbricks.
@adityadeshlahre will you pick this up again? :)
from formbricks.
Hey @jobenjada sorry for not responding for way long !
would like get this issue unassigned for now .
I think i will take back seat and learn from the changes if anyone
contributes on this issue đ
Thank You
from formbricks.
/assign
from formbricks.
Related Issues (20)
- [BUG] Survey answers filter not work HOT 6
- [Tweak] Add drag and drop to options on single- and multi-select questions
- [BUG] Class Name Conflicts
- [FEATURE] Set Max Character Limit in Open Text Question HOT 3
- [BUG] Docs: Incorrectly formatted Note in API Key Setup Page HOT 7
- [FEATURE] Add New Functions to Formbricks Pixel
- [BUG] AWS S3 Credential Chain
- [BUG] Selection Indicator missing (FF on Android)
- [UI] Download button has misleading icon HOT 5
- [BUG] Docs: Incorrectly formatted Note in Data Prefilling in Link Surveys HOT 1
- [TWEAK] Rewrite Cal.com embed to use Atom HOT 5
- [FEATURE] Forward to dynamic URL on survey complete HOT 1
- [FEATURE] Question Timer HOT 2
- [FEATURE] Add support for custom html scripts for link surveys
- [BUG] Copy invite link doesn't copy HOT 5
- [BUG] The Welcome Card displays an image when a logo gets added
- [BUG] Lots of answer options break logic jump selector HOT 1
- [FEATURE] Change question type
- [BUG] HOT 5
- [BUG] Docs: Incorrectly formatted Note in multiple Best Practises pages
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. đđđ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ī¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from formbricks.