I am running MVC 5
and have a search API that produces the following link: /SearchedItem.?format=json
where SearchedItem.
is the user's input into search. This obviously causes a famous 404 due to a dot
character. I've looked into all of the following solutions:
Dot character '.' in MVC Web API 2 for request such as api/people/STAFF.45287
Dots in URL causes 404 with ASP.NET mvc and IIS
ApiController returns 404 when ID contains period
However, neither adding a slash (tried both /SearchedItem./?format=json
and /SearchedItem.?format=json/
) nor RAMMFAR
worked.
Looking for any new suggestions.