0

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.

Man H
  • 77
  • 1
  • 11

1 Answers1

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