Redirect op diepe audiolinks
This commit is contained in:
@@ -33,7 +33,7 @@ class StreamController extends Controller
|
||||
$apiResult = $this->API('podcast/details/' . (int)$id);
|
||||
$podcast = new \Model\Podcast($apiResult);
|
||||
if($podcast->auth != $request->get('auth')) {
|
||||
return abort(403);
|
||||
return view('podcastredirect', ['podcast' => $podcast]);
|
||||
}
|
||||
|
||||
return view('listen', [
|
||||
|
||||
43
resources/views/podcastredirect.blade.php
Normal file
43
resources/views/podcastredirect.blade.php
Normal file
@@ -0,0 +1,43 @@
|
||||
@extends('layouts/full')
|
||||
|
||||
@php( $url = '/gemist/fragment' . $podcast->url )
|
||||
|
||||
@section('title')
|
||||
{{$podcast->title}}
|
||||
@endsection
|
||||
|
||||
@push('styles')
|
||||
<meta http-equiv='refresh' content='5; URL={!!$url!!}.php'>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
@parent
|
||||
|
||||
<div class="row page_margin_top">
|
||||
<div class="column column_2_3">
|
||||
<div class="row">
|
||||
<div class="post single small_image">
|
||||
<h2>Directe link niet toegestaan - u wordt doorgestuurd</h2>
|
||||
<div id='progress' style='background:red; height:5px;'></div>
|
||||
<p>De link die u gevolgd heeft is niet geldig. Het direct linken naar audiofragmenten is niet toegestaan. <br/>
|
||||
De juiste URL is: <a href="{!!$url!!}">https://nhgooi.nl/{!!$url!!}</a>. <br/>
|
||||
Neem alstublieft contact op met de beheerder van de pagina waar u vandaan komt en vraag hen om de koppeling aan te passen. <br/>
|
||||
U wordt binnen enkele seconden automatisch doorgestuurd naar de juiste pagina.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
$('#progress').animate({
|
||||
width: '0px'
|
||||
}, 5000);
|
||||
window.setTimeout(function(){
|
||||
window.location.href = "{!!$url!!}";
|
||||
}, 5000);
|
||||
</script>
|
||||
@endpush
|
||||
Reference in New Issue
Block a user