Redash base_url

I have seen a few threads adding support for base_urls in redash but they involved using nginx or apache to rewrite and proxy (seems unstable and prone to error). I opted to modify and add the prefix in manually and am getting a route error: “It seems like the page you’re looking for cannot be found.” when navigating to redash using the prefix.

from werkzeug.routing import Rule

app.url_rule_class = lambda path, **options: Rule("/redash-prefix" + path, **options)

Technical details: