8000 bug #17454 Allow absolute URLs to be displayed in the debug toolbar (… · symfony/symfony@36c7262 · GitHub
[go: up one dir, main page]

Skip to content

Commit 36c7262

Browse files
committed
bug #17454 Allow absolute URLs to be displayed in the debug toolbar (javiereguiluz)
This PR was merged into the 2.7 branch. Discussion ---------- Allow absolute URLs to be displayed in the debug toolbar | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #12221 | License | MIT | Doc PR | - If you agree with the original issue, this should do the trick. If you don't agree, please explain the reasons and close #12221. Thanks! Commits ------- 11b63ff Allow absolute URLs to be displayed in the debug toolbar
2 parents a1143ed + 11b63ff commit 36c7262

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@
223223
path = url.substr({{ (request.schemeAndHttpHost ~ request.basePath)|length }});
224224
}
225225
226-
if (path.substr(0, 1) === '/' && !path.match(new RegExp({{ excluded_ajax_paths|json_encode|raw }}))) {
226+
if (!path.match(new RegExp({{ excluded_ajax_paths|json_encode|raw }}))) {
227227
var stackElement = {
228228
loading: true,
229229
error: false,

0 commit comments

Comments
 (0)
0