yii2-debug icon indicating copy to clipboard operation
yii2-debug copied to clipboard

Generating a url with a trailing slash

Open xstreamka opened this issue 1 year ago • 0 comments

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

xstreamka avatar Feb 19 '24 15:02 xstreamka