-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
AJAX requests not excluded as expected #12122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The default regex should be updated to take this case into account, while not removing the support of setup using url rewriting or the builtin webserver (and so not using this base path). This is a case which was forgotten when implementing it |
@stof The |
and angular templates are assets as far as Symfony is concerned |
Why is ^/bundles included in the default excluded_ajax_paths? Default configuration should not make assumptions about if the project is using AngularJS and if the templates are in bundles directory. I think the excluded_ajax_paths should simply be ^/_wdt|^/app_dev.php/_wdt to exclude web debug toolbar. |
I agree with @layanto. Otherwise people will wonder why their routes starting with |
👍 for removing |
This PR was squashed before being merged into the 2.6 branch (closes #14217). Discussion ---------- [WebProfilerBundle] Fix regexp | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #12122 | License | MIT | Doc PR | Old PR #12124 Commits ------- 091b37e [WebProfilerBundle] Fix regexp
This PR was squashed before being merged into the 2.6 branch (closes symfony#14217). Discussion ---------- [WebProfilerBundle] Fix regexp | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#12122 | License | MIT | Doc PR | Old PR symfony#12124 Commits ------- 091b37e [WebProfilerBundle] Fix regexp
I just tried the new feature AJAX requests in the web debug toolbar by replacing
"symfony/symfony": "~2.5"
with"symfony/symfony": "2.6.*@dev"
(don't know if there is a better solution for doing it) and I saw something weird :I would have your opinion before doing a PR for solving this problem.
The default configuration for the option
excluded_ajax_paths
is^/bundles|^/_wdt
.But the web debug toolbar is visible only in
dev
and the urls areapp_dev.php/...
.So, I thought of 2 solutions:
app/config/config_dev.yml
file by adding in the web_profiler :excluded_ajax_paths: "^/app_dev.php/bundles|^/app_dev.php/_wdt"
excluded_ajax_paths
What do you think ?
Is there a better solution ? Or the problem is just because I didn't use it the right way.
The text was updated successfully, but these errors were encountered: