How can I correct this firebase url with no extra slash?

After creating download URL like this :point_down:

imageSC

I just stored this URL in this firebase database. Like this :point_down:

blocks (2)

But in firebase database URL printing like this : :point_down:
"“https:\/\/firebasestorage.googleapis.com\/v0\/b\/kms-news-karad.appspot.com\/o\/1135.png?alt=media&token=11aaf3a2-f02a-402d-aa90-e8ad1a2bcbf3"”

**But original URL is : :point_down:
https://firebasestorage.googleapis.com/v0/b/kms-news-karad.appspot.com/o/1135.png?alt=media&token=11aaf3a2-f02a-402d-aa90-e8ad1a2bcbf3

Please compare this two URLs. I don’t want extra slash in this URL. Please help me.!

In the part of the block where it is empty, you put the block that receives the text
blocks(1)

1 Like

It dont matter how it is seen in database Firebase add some extra slash Or / for storing the URL when you will get this URL from Firebase then you will get the original URL that you have stored

3 Likes

Actually, you have to encode the value using the web component whenever sending data and receiving it back (decode).

Use the URI encode and URI decode blocks.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.