decode encoded URLs

Fixes #817
This commit is contained in:
Mohsen Azimi
2015-01-30 15:58:56 -08:00
parent 3b6e24ec1d
commit 5308edc0d1

View File

@@ -24,7 +24,7 @@
<script src='lib/swagger-oauth.js' type='text/javascript'></script>
<script type="text/javascript">
$(function () {
var url = window.location.search.match(/url=([^&]+)/);
var url = decodeURIComponent(window.location.search.match(/url=([^&]+)/));
if (url && url.length > 1) {
url = url[1];
} else {