This is an automated email from the ASF dual-hosted git repository.

xuetaoli pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git


The following commit(s) were added to refs/heads/develop by this push:
     new d5685706d fix(router): fix wrong config key (#3220)
d5685706d is described below

commit d5685706d27dad6397db678286f8e8316ccc87b6
Author: yangpixi <[email protected]>
AuthorDate: Thu Feb 19 10:00:42 2026 +0800

    fix(router): fix wrong config key (#3220)
---
 cluster/router/tag/router.go | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/cluster/router/tag/router.go b/cluster/router/tag/router.go
index 8e4fafd26..511e28d6c 100644
--- a/cluster/router/tag/router.go
+++ b/cluster/router/tag/router.go
@@ -52,8 +52,9 @@ func (p *PriorityRouter) Route(invokers []base.Invoker, url 
*common.URL, invocat
                logger.Warnf("[tag router] invokers from previous router is 
empty")
                return invokers
        }
-       // tag is valid in application
-       key := strings.Join([]string{url.GetParam(constant.ApplicationKey, ""), 
constant.TagRouterRuleSuffix}, "")
+       // get prefix from invoker
+       application := invokers[0].GetURL().GetParam(constant.Tagkey, "")
+       key := strings.Join([]string{application, 
constant.TagRouterRuleSuffix}, "")
        value, ok := p.routerConfigs.Load(key)
        if !ok {
                return staticTag(invokers, url, invocation)

Reply via email to