From 9e65e5e8130051aa9e6d9563fe2722185ecd13d5 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Tue, 29 May 2018 10:46:22 +0100 Subject: [PATCH] Fix loading of Rich Text page in Test Controls --- .../test-controls/controllers/TestControlsController.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/test-controls/controllers/TestControlsController.coffee b/services/web/public/coffee/ide/test-controls/controllers/TestControlsController.coffee index 65378a2cde..ae7db45905 100644 --- a/services/web/public/coffee/ide/test-controls/controllers/TestControlsController.coffee +++ b/services/web/public/coffee/ide/test-controls/controllers/TestControlsController.coffee @@ -11,4 +11,6 @@ define [ window.openLinkedFileModal() $scope.richText = () -> - window.location.href = window.location.toString() + '&rt=true' + current = window.location.toString() + target = "#{current}#{if window.location.search then '&' else '?'}rt=true" + window.location.href = target