def url_for_figure(self, s: str): """ Override it to use flask.url_for :param s: :return: """ return "/fig/" + s