This is how you would do it in L4
<a href="{{ URL::to('devices') }}#openProfile" id="{{ $deviceid }}" class="btnSkyBlue" onclick="openImposeProfile('{{ $device->id }}')">Impose Profile</a>
URL::to might be different in L3
Tip: you should learn jQuery :) it will make your life easier