I am looking to display messages from a nested messages collection. I have some cards and when i click on view a tag i use routerlink to go to the desired path to see the messages. One out of 3 cards has a correct cardiD [![enter image description here][1]][1]link and displays the messages correty, but the other 2 cards get a %20 in front os cardId link on search bar. The result is that i display cards correct fields but messages can't be displayed.
Asked
Active
Viewed 433 times
0
-
2%20 is the encoding for whitespace. make sure your links are correct – Darren Lamb Oct 30 '19 at 11:38
-
post your code here – jitender Oct 30 '19 at 11:41
-
1@DarrenLamb It was a whitespace in the database id field for these 2 specific card. Now i will remember that whitespace error. Thanks a lot – Man H Oct 30 '19 at 11:45
-
@DarrenLamb it's the URL encoded " " space character, not so much white space. There are a few different whitespace charaters, such as tab too. – Austin T French Oct 30 '19 at 12:48
-
@DarrenLamb Could you post your comment as an answer? That will be of help for the community members that have the same issue. – iker lasaga Nov 05 '19 at 08:39
1 Answers
1
%20
is the URL encoding for whitespace, or as Austin T French more accurately pointed out it is specifically the encoding for the " " character.
There are a bunch of other % encoded characters that you might come across and you can easily find a list of them online
In this instance you probably just need to make sure you trim your links of any whitespace.

Darren Lamb
- 1,535
- 14
- 18