summaryrefslogtreecommitdiffstats
path: root/web/static.go
Commit message (Collapse)AuthorAgeFilesLines
* ensure subpath redirect preserves query string correctly (#9444)Jesse Hallam2018-09-271-1/+2
| | | | The previous code appended a `/` to the end of the URL, breaking if a query string was present.
* MM-11420: plugins: compute bundle hash on load (#9172)Jesse Hallam2018-07-311-18/+3
| | | | | | | | | | | | * plugins: compute bundle hash on load Use this hash to bust client caches whenever the plugin bundle changes. * eliminate redundant pluginHandler * switch to 64-bit FNV-1a * Fix test
* Adding support for code split plugins. (#9184)Christopher Speller2018-07-311-0/+3
|
* Fix plugins serving after subpath changes (#8982)Joram Wilander2018-06-221-1/+1
|
* MM-10370: serve subpath (#8968)Jesse Hallam2018-06-211-4/+14
| | | | | | | | | | | | | | | | | | | | | | | * factor out GetSubpathFromConfig * mv web/subpath.go to utils/subpath.go * serve up web, api and ws on /subpath if configured * pass config to utils.RenderWeb(App)?Error This allows the methods to extract the configured subpath and redirect to the appropriate `/subpath/error` handler. * ensure GetSubpathFromConfig returns trailing slashes deterministically * fix error 404 handling * redirect /subpath to /subpath/ This is necessary for the static handler to match, otherwise none of the registered routes find anything. This also makes it no longer necessary to add trailing slashes in the root router.
* MM-10367: rewrite subpath assets on startup (#8944)Jesse Hallam2018-06-141-0/+2
| | | | | | | | | Examine ServiceSettings.SiteURL on startup and rewrite assets accordingly if not in a development environment. Also export `mattermost config subpath` command to manually do same. This accompanies a webapp PR to use the updated `root.html` to define the necessary webpack asset path for dynamically loading assets.
* Refactor context out of API packages (#8755)Joram Wilander2018-05-141-0/+84
* Refactor context out of API packages * Update function names per feedback * Move webhook handlers to web and fix web tests * Move more webhook tests out of api package * Fix static handler