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

command line - Use qwinsta in PowerShell ISE -

java - Incorrect order of records in M-M relationship in hibernate -

Python website log in: BIG-IP can not find session information in the request -