Skip to content
This repository was archived by the owner on Oct 29, 2021. It is now read-only.
This repository was archived by the owner on Oct 29, 2021. It is now read-only.

Can't figure how to mount traceapp to anything other than "/" #180

Description

@ansel1

The traceapp.New() function seems to indicate it supports being mounted to a subpath, but I haven't been able to make it work. I've tried passing in a gorilla mux subrouter, and tried wrapping the App in http.StripPrefix, but in both cases, images and links on the home page are absolute (see root.html), so they don't work.

Also, I'm curious why the other templates use the {{.BaseURL}} template var to construct absolute URLs for everything, instead of just using relative URLs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions