Use always '/' at the end of projector url.

e.g. '/projector/1/' or '/real-projetor/1/'
This commit is contained in:
Emanuel Schütze 2017-01-15 12:13:46 +01:00
parent 2a42368157
commit 0eb4f67a48
4 changed files with 5 additions and 5 deletions

View File

@ -266,7 +266,7 @@ angular.module('OpenSlidesApp.core.site', [
}, },
}) })
.state('projector', { .state('projector', {
url: '/projector/{id:int}', url: '/projector/{id:int}/',
templateUrl: 'static/templates/projector-container.html', templateUrl: 'static/templates/projector-container.html',
data: {extern: true}, data: {extern: true},
onEnter: function($window) { onEnter: function($window) {
@ -274,7 +274,7 @@ angular.module('OpenSlidesApp.core.site', [
} }
}) })
.state('real-projector', { .state('real-projector', {
url: '/real-projector/{id:int}', url: '/real-projector/{id:int}/',
templateUrl: 'static/templates/projector.html', templateUrl: 'static/templates/projector.html',
data: {extern: true}, data: {extern: true},
onEnter: function($window) { onEnter: function($window) {

View File

@ -125,7 +125,7 @@
<a ui-sref="projector({id: projector.id})" target="_blank"> <a ui-sref="projector({id: projector.id})" target="_blank">
<div class="iframewrapper" id="iframewrapper_{{ projector.id }}"> <div class="iframewrapper" id="iframewrapper_{{ projector.id }}">
<iframe class="iframe" id="iframe_{{ projector.id }}" ng-src="{{ '/real-projector/' + projector.id }}" frameborder="0"></iframe> <iframe class="iframe" id="iframe_{{ projector.id }}" ng-src="{{ '/real-projector/' + projector.id + '/' }}" frameborder="0"></iframe>
<div class="iframeoverlay" id="iframeoverlay_{{ projector.id }}"></div> <div class="iframeoverlay" id="iframeoverlay_{{ projector.id }}"></div>
</div> </div>
</a> </a>

View File

@ -78,7 +78,7 @@
<a ui-sref="projector({id: active_projector.id })" target="_blank"> <a ui-sref="projector({id: active_projector.id })" target="_blank">
<div class="iframewrapper" id="iframewrapper_sidebar"> <div class="iframewrapper" id="iframewrapper_sidebar">
<iframe class="iframe" id="iframe_sidebar" ng-src="{{ '/real-projector/' + active_projector.id }}" frameborder="0"></iframe> <iframe class="iframe" id="iframe_sidebar" ng-src="{{ '/real-projector/' + active_projector.id + '/'}}" frameborder="0"></iframe>
<div class="iframeoverlay" id="iframeoverlay_sidebar"></div> <div class="iframeoverlay" id="iframeoverlay_sidebar"></div>
</div> </div>
</a> </a>

View File

@ -39,7 +39,7 @@
</style> </style>
<div id="iframewrapper" ng-hide="error"> <div id="iframewrapper" ng-hide="error">
<iframe id="iframe" ng-src="{{ '/real-projector/' + projectorId }}" frameborder="0"></iframe> <iframe id="iframe" ng-src="{{ '/real-projector/' + projectorId + '/'}}" frameborder="0"></iframe>
<div id="iframeoverlay"></div> <div id="iframeoverlay"></div>
</div> </div>