Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

PathSuffix is being copied to target URL

Not applicable

Is it possible to remove the pathsuffix in the target URL?

I have tried to apply the JavaScript policy in the default preflow and the preflow of my proxy:

context.setVariable("target.copy.pathsuffix", false)

Also, using the AssignMessage.DisablePathCopy policy:

<AssignMessagename="AssignMessage.DisablePathCopy">
    <AssignVariable>
       <Name>target.copy.pathsuffix</Name>
       <Value>false</Value>
    </AssignVariable>
</AssignMessage>

I have reviewed this question and this question but any solution of those worked.

Is the another way to prevent pathsuffix being copied?

1 11 6,560
11 REPLIES 11
Top Solution Authors