diff --git a/index.html b/index.html
index b1dbf7c..816400f 100644
--- a/index.html
+++ b/index.html
@@ -63,6 +63,17 @@
link2aws.github.io
//document.getElementById("text").value = "arn:aws:iam::aws:policy/AdministratorAccess";
onUpdate();
+
+ // If the user passes in the arn as a anchor, immediately redirect them
+ var arn = window.location.hash.replace('#', '');
+ if (arn) {
+ elem.value = arn;
+ onUpdate();
+ var a = document.getElementById('link');
+ if (a) {
+ location.href = a.innerText;
+ }
+ };
}
function onUpdate() {