Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to edit the Firebase DynamicLinks 404 (Dynamic Link Not Found) page?

I'm using Firebase DynamicLinks and wondering if there is a way to edit the page that appears when the user opens an invalid or deleted link?

I tried to provide the 404.html in the public folder of Firebase hosting but didn't work as expected.

I wanna edit what appears in this image

like image 966
Badi3 Avatar asked Nov 11 '19 03:11

Badi3


1 Answers

Although this is an old post, I will drop an answer here anyway, as this question is the first result when using searching for this in Google.

Short answer: It's not possible.

Long answer: Theoretically, it should be possible by creating and adding a 404.html to your public directory. However, as I tried it out on my own project, and turns out it doesn't work for dynamic links.

Perhaps someone hopes that creating a dynamical magical page with a wildcard path will help and firebase will overwrite it. No, it won't. I added a file for my FAQ page at doma.in/faq (faq.html in /public directory) and then tried adding a dynamic link for the very same link. The original faq.html was served.

I will update if I figure something out.

like image 71
kravis Avatar answered Oct 11 '22 17:10

kravis