When rack-mini-profiler was used under a different base URL (e.g. when deployed in a Rails app with relative_url_root configured), the stackprof iframe URL was missing the base path. This commit fixes the path for the flamegraph by sharing logic with the #get_profile_script method, and adds a spec.
When rack-mini-profiler was used under a different base URL (e.g. when deployed in a Rails app with
relative_url_root
configured), the stackprof iframe URL was missing the base path. This commit fixes the path for the flamegraph by sharing logic with the#get_profile_script
method, and adds a spec.