Go to file
Ryan Shaw 8483304dcf redirect_back to page you were on when accepting enrollment
redirect_back is a new method in rails 5:
https://apidock.com/rails/ActionController/Redirecting/redirect_back

and it is for doing exactly what we want here, redirect back to the
page the person was on, otherwise still fall back to the fallback
location we were using before

test plan:
* accept a course enrollment invitation from an assignment page
* it should redirect you back to the same page you were looking at
  and not the course home page

Change-Id: I9be2050b452ee67da3aac32a6e7670f5719e5c35
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/217234
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Tested-by: Jenkins
QA-Review: Steven Burnett <sburnett@instructure.com>
Product-Review: Steven Burnett <sburnett@instructure.com>
Reviewed-by: Steven Burnett <sburnett@instructure.com>
2019-11-15 04:42:59 +00:00
.github update PR auto assignments 2019-10-24 21:19:48 +00:00
Gemfile.d Pin aws-partitions to 1.238.0 2019-11-14 18:39:06 +00:00
app redirect_back to page you were on when accepting enrollment 2019-11-15 04:42:59 +00:00
bin spec: publish live-events contract test results 2019-11-07 16:30:26 +00:00
build add non frontend linters to new jenkins build 2019-11-14 20:21:28 +00:00
client_apps Clean up yarn.lock 2019-08-26 16:31:11 +00:00
config wrap notification for global announcement in feature flag 2019-11-14 22:12:28 +00:00
db/migrate add various performance indexes 2019-11-11 16:42:48 +00:00
doc add assignment_name to grade_change event 2019-11-05 20:09:15 +00:00
docker-compose Add pg_collkey to postgres image for docker builds 2019-11-13 23:51:59 +00:00
frontend_build Perf: include globalNav in main entry 2019-10-25 21:17:18 +00:00
gems Make stringifying stuff work even with uppercase letters 2019-11-15 03:23:34 +00:00
hooks fix pre-commit hook with unfixable eslint error 2018-11-27 23:28:12 +00:00
jest spec: fix handlebars transform for jest tests 2019-09-05 15:03:54 +00:00
lib fix cross-shard group assignment overrides 2019-11-14 13:29:55 +00:00
packages Better state handling in Media Upload modal 2019-11-11 22:06:57 +00:00
pact Include context_name in planner item response 2018-08-29 22:20:52 +00:00
public refresh page after resource import on pages index 2019-11-13 22:23:29 +00:00
script use plain redis, not redis-store for consul event consumer 2019-10-30 15:56:00 +00:00
spec wrap notification for global announcement in feature flag 2019-11-14 22:12:28 +00:00
.bowerrc introduced bower to manage js dependencies 2013-12-13 17:45:57 +00:00
.codeclimate.yml disable ESLint in code climate 2017-02-14 17:47:39 +00:00
.dockerignore Create shared translation infrastructure for packages 2019-11-06 22:42:03 +00:00
.editorconfig Add EditorConfig configuration file to help maintain code style 2016-11-15 20:08:55 +00:00
.eslintignore Run prettier on packages/ 2019-10-11 19:29:16 +00:00
.eslintrc.js Remove prettier whitelist 2019-10-11 19:29:31 +00:00
.gitignore use knapsack in new jenkins rspec build 2019-09-13 15:19:34 +00:00
.gitmessage prepend some blank lines to .gitmessage 2019-08-09 16:12:53 +00:00
.i18nignore bump rails 3 to github branch for ruby 2.2 compatibility 2015-02-18 22:55:20 +00:00
.i18nrc upgrade to node 6 2016-08-09 23:37:07 +00:00
.lintstagedrc.js Remove prettier whitelist 2019-10-11 19:29:31 +00:00
.npmrc fix brand config previewing and skipping 2015-10-27 16:16:15 +00:00
.nvmrc Bump to Node 10 2019-03-22 17:29:36 +00:00
.prettierrc Add .prettierrc so it matches our existing code 2017-11-03 16:21:50 +00:00
.rubocop.yml spec: remove ExpectChange and TimesMap 2018-08-31 14:53:41 +00:00
.selinimumignore Revert and bring InstIcons into Canvas 2016-11-29 20:52:54 +00:00
.stylelintrc Lint for css that will break RTL 2018-10-17 20:21:25 +00:00
.travis.yml more travis builds 2014-02-10 16:23:19 +00:00
CONTRIBUTING.md Add CLA FAQ from legal 2018-01-22 16:41:44 -05:00
COPYRIGHT Initial commit. 2011-01-31 18:57:29 -07:00
Dockerfile Fix `bundler lock --update` step in Dockerfile 2019-11-12 22:36:51 +00:00
Dockerfile-production update yarn in docker to 1.19.1 2019-10-17 15:21:58 +00:00
Dockerfile.githook Add precommit hook for auto fixing files 2018-11-27 21:07:31 +00:00
Dockerfile.package-translations Create shared translation infrastructure for packages 2019-11-06 22:42:03 +00:00
Gemfile drop rails 5.1 2019-08-01 14:09:31 +00:00
Jenkinsfile add non frontend linters to new jenkins build 2019-11-14 20:21:28 +00:00
Jenkinsfile.contract-tests spec: publish live-events contract test results 2019-11-07 16:30:26 +00:00
Jenkinsfile.frontend create linters build and remove linters from frontend build 2019-11-05 17:33:43 +00:00
Jenkinsfile.linters add non frontend linters to new jenkins build 2019-11-14 20:21:28 +00:00
Jenkinsfile.package-translations Create shared translation infrastructure for packages 2019-11-06 22:42:03 +00:00
Jenkinsfile.rspec handle knapsack environment vars better 2019-10-31 16:29:28 +00:00
Jenkinsfile.selenium.chrome handle knapsack environment vars better 2019-10-31 16:29:28 +00:00
Jenkinsfile.selenium.performance.chrome spec: add performance selenium specs to new jenkins 2019-10-04 20:35:42 +00:00
Jenkinsfile.vendored-gems spec: pull new jenkins images from starlord 2019-09-27 15:31:42 +00:00
Jenkinsfile.xbrowser spec: pull new jenkins images from starlord 2019-09-27 15:31:42 +00:00
LICENSE Initial commit. 2011-01-31 18:57:29 -07:00
README.md Update README.md since Canvas is still modern 2016-12-15 03:18:28 +00:00
Rakefile require present value for knapsack enabled env 2019-09-17 17:11:44 +00:00
babel.config.js Fix the build 2019-09-17 21:26:07 +00:00
bower.json Move k5uplodaer to /packages 2019-05-10 18:30:51 +00:00
code_of_conduct.md contributor code of conduct 2014-12-23 18:13:59 +00:00
config.ru remove extra logging to debug Passenger connection orphan issue 2017-07-14 16:27:03 +00:00
docker-compose.jenkins.yml update rce-api version on jenkins second attempt 2019-07-19 20:24:19 +00:00
docker-compose.new-jenkins-karma.yml Fix some missed renaming spots in the Jenkinsfile 2019-09-06 22:01:20 +00:00
docker-compose.new-jenkins-package-translations.yml Create shared translation infrastructure for packages 2019-11-06 22:42:03 +00:00
docker-compose.new-jenkins-selenium.yml spec: add wait_for_page_load before the expect 2019-10-23 19:27:19 +00:00
docker-compose.new-jenkins-web.yml Rename linters-and-js build to frontend 2019-09-05 20:15:10 +00:00
docker-compose.new-jenkins.yml run dynamodb in new jenkins 2019-10-31 17:10:55 +00:00
docker-compose.override.yml Add LTI tool modal 2019-09-13 17:53:30 +00:00
docker-compose.spring.yml add a spring docker-compose config 2019-08-19 13:48:15 +00:00
docker-compose.yml Use redis:alpine 2017-07-31 22:31:40 +00:00
gulpfile.js fix polyfill for old browsers 2019-09-09 20:00:17 +00:00
issue_template.md Make issue template disclaimer a comment 2018-05-01 15:00:27 +00:00
jest.config.js upgrade @testing-library npm deps 2019-08-27 14:49:48 +00:00
karma.conf.js upgrade webpack to v4 2019-05-16 15:59:04 +00:00
package.json fix deprecated ellipsis warnings in A2 2019-11-05 22:42:37 +00:00
schema.graphql graphql: add course images 2019-11-05 18:13:42 +00:00
webpack.config.js Opt our js build tooling dirs into prettier 2018-11-07 22:46:16 +00:00
webpack.test.config.js upgrade webpack to v4 2019-05-16 15:59:04 +00:00
yarn.lock Better state handling in Media Upload modal 2019-11-11 22:06:57 +00:00

README.md

Canvas LMS

Canvas is a modern, open-source LMS developed and maintained by Instructure Inc. It is released under the AGPLv3 license for use by anyone interested in learning more about or using learning management systems.

Please see our main wiki page for more information

Installation

Detailed instructions for installation and configuration of Canvas are provided on our wiki.