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
Post a Comment