Skip to content

Commit 08b1f45

Browse files
committed
🐛 Fix redirect URL bug with login block
1 parent b1fdbef commit 08b1f45

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

blocks/login-block/frontend.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if ( loginBlocks ) {
3535
redirectBoomerang={
3636
blockDetails.dataset.redirectBoomerang === 'true'
3737
}
38-
redirectURL={ blockDetails.dataset.redirectURL }
38+
redirectURL={ blockDetails.dataset.redirectUrl }
3939
style={ style }
4040
/>,
4141
wpRainbowBlock

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wp-rainbow",
3-
"version": "0.2.14",
3+
"version": "0.2.15",
44
"description": "RainbowKit Login (Web3 Integration for Sign-In With Ethereum)",
55
"author": "Davis Shaver",
66
"license": "GPL-2.0-or-later",

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: WordPress, web3, SIWE, Ethereum, RainbowKit, Sign-In With Ethereum
44
Tested up to: 6.0
55
Requires at least: 5.9
66
Requires PHP: 7.0
7-
Stable tag: 0.2.14
7+
Stable tag: 0.2.15
88
License: GPLv2 or later
99
License URI: https://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -47,6 +47,9 @@ Find reference implementations of all filters in [example plugin here](https://g
4747

4848
== Changelog ==
4949

50+
= 0.2.15 =
51+
* Fix bug with override redirect URL on login block
52+
5053
= 0.2.14 =
5154
* Use alternate network for connection request too
5255

src/connect.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ export function WPRainbowConnect( {
108108
if ( verifyRes.ok ) {
109109
setState( ( x ) => ( { ...x, address, loading: false } ) );
110110
onLogin();
111+
console.log( {
112+
redirectURL,
113+
REDIRECT_URL,
114+
ADMIN_URL,
115+
} );
111116
if ( redirectBoomerang ) {
112117
window.location.reload();
113118
} else {

wp-rainbow.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Plugin Name: RainbowKit Login (Web3 Integration for Sign-In With Ethereum)
1111
* Plugin URI: https://wp-rainbow.davisshaver.com/
1212
* Description: RainbowKit Login allows WordPress users to log in with Ethereum using the Sign-In With Ethereum standard, powered by RainbowKit.
13-
* Version: 0.2.13
13+
* Version: 0.2.15
1414
* Author: Davis Shaver
1515
* Author URI: https://davisshaver.com/
1616
* License: GPL v2 or later
@@ -27,7 +27,7 @@
2727
*
2828
* @var string
2929
*/
30-
define( 'WP_RAINBOW_ASSETS_VERSION', '0.2.14' );
30+
define( 'WP_RAINBOW_ASSETS_VERSION', '0.2.15' );
3131

3232
// Include the autoloader.
3333
add_action(

0 commit comments

Comments
 (0)