1
Answer

Web Api URL accpect( # hash) values ?

Rahul jyala

Rahul jyala

8y
303
1
i have a problem related to  Web Api URL  
 
http://localhost:xxxxx/api/GetBooks gets me the result of books
 
but if i do something like that 
 
http://localhost:xxxxx/api/GetBooks#xyz gets me the same result of books 
 
how to prevent #xyz from my URL I want neat and clean URL ?
 
All help will be appreciated
 
 
 
Answers (1)
2
Gowtham K
NA 18.1k 1.6m 8y
Hi Rahul,
Explicitly remove the character after ''#' from the URL while the page loads, please check out below links,
http://stackoverflow.com/questions/20371060/remove-character-from-url-with-jquery \
http://jsfiddle.net/DGFuf/217/
Accepted