angularjs - Remove # from the URL in Python Simple HTTP Server -


i have angularjs app uses angular ui router , url created have # in them.. eg. http://localhost:8081/#/login. using python simple http server run app while developing. need remove # url. know how remove enabling html5 mode in angular. method has problems , want remove # server side.

how can using python simple http server?

you can derive basehttprequesthandler , override do_get method.

class myhttphandler(basehttprequesthandler):     def do_get(self):         # own processing further, if want pass         # default handler new path, following         self.path = self.path.strip('/#')         basehttprequesthandler.do_get(self) 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -