Disable URL Path Segments in Javascript
Answered
I have an intellij plugin that provides possibility to goto a PHP class on url paths.
Within JavaScript Intellij splits the string in “URL path Segments”. Therefor I can not go to the class since it will search on “email” only. Is there any way to disable this URL Path Segments in my plugin or within Intellij settings?
I would like to disable this splitting of URL path segments in Javascript:

Within PHP it works as expected:

Thanks,
Giel
Please sign in to leave a comment.
Hi Giel,
Instead of disabling existing references (which I don't think is possible), please try implementing
com.intellij.codeInsight.navigation.actions.GotoDeclarationHandler
and register it asorder="first"
in plugin.xml.Hi Karol,
The order option doesn't seem to work.
After digging deep I found that the solution is to prevent the usage of the name url in the the parameter:
Original function:
router_url_ext = function(url){
}
Function without splitting
router_url_ext = function(u){
};
Thanks,
Giel
Hi Giel,
To be clear, I didn't mean just defining the order for your reference contributor, but implementing
GotoDeclarationHandler
, which is a different extension point.