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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With