# Redirected to Wordpress dashboard after discourse login

**URL:** <https://meta.discourse.org/t/redirected-to-wordpress-dashboard-after-discourse-login/60116>\
**Category:** WordPress\
**Created:** [March 29, 2017, 3:41pm UTC](https://meta.discourse.org/t/redirected-to-wordpress-dashboard-after-discourse-login/60116 "2017-03-29T15:41:28Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [March 30, 2017, 3:18pm UTC](https://meta.discourse.org/t/redirected-to-wordpress-dashboard-after-discourse-login/60116/8 "2017-03-30T15:18:41Z")

</div>

> [@Martin\_O](#):
>
> Would it be of use to add this list of hosts to the [Discourse sso](https://meta.discourse.org/t/13045?silent=true) configuration in wp Dashboard?

From what I understand about your setup, you have two URLs pointing at your forum, with the first one redirecting to the second one. I’m not sure if an option should be added to the plugin for dealing with that situation.

For now, instead of editing the plugin’s code, you can add to the allowed hosts array in your theme’s `functions.php` file by doing something like this:

```php
function your_namespace_allow_extra_redirect( $hosts ) {

	$hosts[] = 'yourseconddomain.com';

return $hosts;
}
add_filter( 'allowed_redirect_hosts', 'your_namespace_allow_extra_redirect' );

```

---

_[View the full topic](https://meta.discourse.org/t/redirected-to-wordpress-dashboard-after-discourse-login/60116)._
