Skip to content

Commit

Permalink
fixes #633
Browse files Browse the repository at this point in the history
  • Loading branch information
Henri Ylikotila committed Oct 10, 2017
1 parent 829c528 commit c5a428d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resource/js/docready.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,8 @@ $(function() { // DOCUMENT READY
return false;
}
var uri = $('.uri-input-box').html();
var redirectUrl = vocab + '/' + lang + '/page/?uri=' + uri;
var base_href = $('base').attr('href'); // see #315, #633
var redirectUrl = base_href + vocab + '/' + lang + '/page/?uri=' + uri;
window.location.replace(encodeURI(redirectUrl));
return false;
}
Expand Down

0 comments on commit c5a428d

Please sign in to comment.