<script>
 import { page } from '$app/stores';

 let className = '';
 export { className as class };

 let auth_route = 'auth/CRI'
 $: {
     if ($page.url.searchParams.get('next')) {
         auth_route = 'auth/CRI?next=' + encodeURIComponent($page.url.searchParams.get('next'));
     } else {
         auth_route = 'auth/CRI?';
     }
 }
</script>

<a href={auth_route} target="_self" class="{className}">
    <slot></slot>
</a>
