yiisoft / yii2-debug

Debug Extension for Yii 2
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
202 stars 149 forks source link

Generating a url with a trailing slash #529

Open xstreamka opened 6 months ago

xstreamka commented 6 months ago

What steps will reproduce the problem?

Open any page with a debugger

What's expected?

Generating a link to a toolbar with a slash at the end Example: /debug/default/toolbar/?tag=65d3760d6f066

What do you get instead?

I get a link without a slash at the end, although it is globally set to urlManager Example: /debug/default/toolbar?tag=65d3760d6f066 Therefore, a redirect occurs with a slash at the end

image

This is where it happens: getToolbarHtml() in \yii\debug\Module image

How can I add a slash at the end without inheriting and changing the method getToolbarHtml?

image

Additional info

Q A
Yii version 2.0.49.3
PHP version 8.2
Operating system Linux 3ae8e767dffc 5.10.0-27-amd64 #1 SMP Debian 5.10.205-2 (2023-12-31) x86_64