Disabling links in responses

When I use Postman to call an API or anything and that API returns a result that contains URLs, then those URLs are always clickable. When I click them, Postman opens a new tab inside Postman. I find this behavior really frustrating and pointless. Often I just want to copy the URL from the response to use somewhere else, but that is difficult to do because Postman always wants to open that URL in a new tab when I try to select the text. (I know I can right click the link to copy it, but sometimes I want to copy only a part of the URL, not the entire URL.)

Is there a way to disable this behavior? I looked through the settings and I searched on Google and this forum, but was not able to find anything about it. I even asked ChatGPT, but it told me about that option that doesn’t exist (“Request Link Click Action” in General settings). If there really is no way to disable this, could you please add a setting for this? I would love it if I could have Postman handle URLs like any other text, so that nothing happens when I click on/in it.

I am using Postman v11.7.0.

Hey @gilian :wave:

Welcome to the Postman Community! :postman:

There isn’t a setting in the app to make those not clickable - In terms of adding that functionality, you can raise a new Feature Request over on our Github Issue Tracker.


If you want a method of copying a link from a response, have you tried logging that out to the Postman Console? Or use Postbot to create a visualizer script to help copy a link/url from the response to the clipboard?

I was just messing about with an basic example and Postbot created this (not so pretty) button which copies the url from the response.

var template = `
<style type="text/css">
    .btn {
        background-color: #4CAF50;
        border: none;
        color: white;
        padding: 10px 20px;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 16px;
        margin: 4px 2px;
        cursor: pointer;
    }
</style>

<button class="btn" onclick="copyToClipboard()">Copy URL to Clipboard</button>

<script>
    function copyToClipboard() {
        var textField = document.createElement('textarea');
        textField.innerText = "{{response.url}}";
        document.body.appendChild(textField);
        textField.select();
        document.execCommand('copy');
        textField.remove();
    }
</script>
`;

function constructVisualizerPayload() {
    var res = pm.response.json();
    return {response: res};
}

pm.visualizer.set(template, constructVisualizerPayload());

That is something similar to what I did a while ago with the visualiser.

Thank you for the quick reply and for the script you posted. However, that script is not really what I’m looking for. It’s much easier to just right-click a link and copy it via the context menu. Also, wanting to copy a link was just an example, often I also accidentally click one of those links, then Postman opens that in a new tab. I just want to be able to make them non-clickable in general and permanently, everywhere in Postman. I will add a feature request for that on GitHub.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.