# Redirecionar todos os usuários que clicarem em domain.com/signup para uma página diferente

**URL:** <https://meta.discourse.org/t/redirect-all-users-who-click-on-domain-com-signup-to-a-different-page/80532>\
**Category:** Development\
**Created:** [14 Fevereiro , 2018 12:14 UTC](https://meta.discourse.org/t/redirect-all-users-who-click-on-domain-com-signup-to-a-different-page/80532 "2018-02-14T12:14:23Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![nadermx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nadermx/32/67585_2.png) [@nadermx](https://meta.discourse.org/u/nadermx)\
**Post date:** [15 Fevereiro , 2018 16:13 UTC](https://meta.discourse.org/t/redirect-all-users-who-click-on-domain-com-signup-to-a-different-page/80532/13 "2018-02-15T16:13:17Z")

</div>

I still can’t seem to get this to work as it seems even if I put the script in the `</body>` of the admin pane, it still always shows the length as 0 of the html collection. I suppose it’s because it’s firing before the document is fully loaded?

```
<script>
    var thingy = document.getElementsByClassName("sign-up-button");
    console.log(thingy.length)
    for (var i = 0; i < thingy.length; i++) {
            console.log('pring this');
    };
</script>

```

Any help would be apprecicated

---

_[View the full topic](https://meta.discourse.org/t/redirect-all-users-who-click-on-domain-com-signup-to-a-different-page/80532)._
