Commit graph

11 commits

Author SHA1 Message Date
GitLab Bot
b001207ce2 Add latest changes from gitlab-org/gitlab@master 2020-06-08 09:08:23 +00:00
Yoginth
2f6a20ce66 Fix typos in the whole gitlab-ce project 2019-05-20 14:11:44 +00:00
gfyoung
c858f70d07 Enable frozen string for lib/gitlab/*.rb 2018-10-22 07:00:50 +00:00
Sean McGivern
9f921b73f2 Don't add a trailing slash in group redirects
Because we ignored the format, a request to `/groups/foo/labels.json` would
redirect to `/groups/foo/-/labels/.json`. But really, it's worse than that,
because unless the request contained a trailing slash, we shouldn't add one.

Now, we only _keep_ a trailing slash, but don't _add_ one.
2017-11-16 17:13:40 +00:00
Bob Van Landuyt
2414c69ee9 Check redirecting with a querystring 2017-11-07 19:52:10 +01:00
Bob Van Landuyt
58d1d6a5c7 Free up some group reserved words 2017-11-07 19:52:09 +01:00
Bob Van Landuyt
414c4e3fd8 Add helper methods to redirect legacy paths 2017-11-07 19:52:09 +01:00
Douwe Maan
5ae4592637 Also inject new route helpers into includers of GitlabRoutingHelper 2017-07-08 16:24:18 -05:00
Douwe Maan
c81928cfa7 Include new URL helpers retroactively into includers of Gitlab::Routing 2017-07-07 10:43:37 -05:00
Grzegorz Bizon
84290a452d Make it possible to mix Gitlab::Routing in 2016-12-13 14:51:23 +01:00
Yorick Peterse
84b0ab7766 Added & use Gitlab::Routing for URL helpers
Rails' "url_helpers" method creates an anonymous Module (which a bunch
of methods) on every call. By caching the output of this method in a
dedicated method we can shave off about 10 seconds of loading time for
an issue with around 200 comments.
2016-04-01 11:13:48 +02:00