Skip to content

Commit

Permalink
fix: widget redirecting to wrong page
Browse files Browse the repository at this point in the history
  • Loading branch information
Ancocodet committed Dec 11, 2024
1 parent a9b4dbf commit e1dd7c7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion inc/class-dashboard-widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function add_widget() {
* Render the widget.
*
* @since 0.8.0
* @change 0.8.1 - Path changed in umami.
*/
public function render_widget() {
$options = Options::get_options();
Expand All @@ -56,7 +57,7 @@ public function render_widget() {
if ( empty( $host_url ) ) {
$host_url = wp_parse_url( $script_url, PHP_URL_SCHEME ) . '://' . wp_parse_url( $script_url, PHP_URL_HOST );
}
$url = $host_url . '/admin/websites/' . $website_id;
$url = $host_url . '/websites/' . $website_id;
echo wp_kses(
// translators: %s => Umami Admin page URL.
sprintf( __( 'View you analytics on <a href="%s" target="_blank">Umami Analytics</a>', 'integrate-umami' ), esc_url( $url ) ),
Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ Issues with the settings page were fixed and the overall feeling of the page was

## Changelog ##

- **0.8.1** - Widget Fix<br>
<br>Fixed an issue with the widget redirecting to the wrong url
<br><br>

- **0.8.0** - Migrate options<br>
<br>Increased the minimum WordPress version to 6.0
<br>Migrate option to new naming structure
Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ Issues with the settings page were fixed and the overall feeling of the page was

== Changelog ==

= 0.8.1 =
* Fixed issue with the Widget redirecting to the wrong page

= 0.8.0 =
* Increased the minimum WordPress version to 6.0
* Added a simple dashboard widget for redirecting to the umami dashboard
Expand Down
4 changes: 2 additions & 2 deletions wp-umami.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: Integrate Umami
* Description: Integration for Umami Analytics
* Version: 0.8.0
* Version: 0.8.1
* Author: Ancocodet
* Author URI: https://ancozockt.de
* Plugin URI: https://github.com/Ancocodet/wp-umami
Expand All @@ -16,7 +16,7 @@

require plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';

define( 'INTEGRATE_UMAMI_VERSION', '0.8.0' );
define( 'INTEGRATE_UMAMI_VERSION', '0.8.1' );
define( 'INTEGRATE_UMAMI_BASE_FILE', __FILE__ );

/**
Expand Down

0 comments on commit e1dd7c7

Please sign in to comment.