File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/main/java/fr/adrienbrault/idea/symfony2plugin/profiler/utils Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ public static Collection<ProfilerRequestInterface> createRequestsFromIndexHtml(@
128128 if (tokenLink != null ) {
129129 String href = tokenLink .getAttributeValue ("href" );
130130 if (StringUtils .isNotBlank (href )) {
131- profilerUrl = StringUtils . stripEnd (baseUrl , "/" ) + href ;
131+ profilerUrl = getProfilerAbsoluteUrl (baseUrl , href ) ;
132132 }
133133 }
134134
@@ -153,6 +153,11 @@ public static Collection<ProfilerRequestInterface> createRequestsFromIndexHtml(@
153153 return requests ;
154154 }
155155
156+ @ NotNull
157+ private static String getProfilerAbsoluteUrl (@ NotNull String baseUrl , @ NotNull String href ) {
158+ return StringUtils .stripEnd (baseUrl , "/" ) + href .substring (href .indexOf ("/_profiler/" ));
159+ }
160+
156161 @ NotNull
157162 public static Collection <ProfilerRequestInterface > collectHttpDataForRequest (@ NotNull Project project , @ NotNull Collection <ProfilerRequestInterface > requests ) {
158163 Collection <Callable <ProfilerRequestInterface >> callable = requests .stream ().map (
You can’t perform that action at this time.
0 commit comments