To highlight the cell with duplicate values and hyperlinks:
1.) Get the URL from the hyperlink using the following custom formula:
=linkURL(A1)
Replace the A1 with the cell to refer to. Or you can drag down to other cells.

Here's the script for the custom formula, to use this just go to Extensions -> Apps Script -> Paste the codes below
function linkURL(reference) {
var sheet = SpreadsheetApp.getActiveSheet();
var formula = SpreadsheetApp.getActiveRange().getFormula();
var args = formula.match(/=\w+\((.*)\)/i);
try {
var range = sheet.getRange(args[1]);
}
catch(e) {
throw new Error(args[1] + ' is not a valid range');
}
var formulas = range.getRichTextValues();
var output = [];
for (var i = 0; i < formulas.length; i++) {
var row = [];
for (var j = 0; j < formulas[0].length; j++) {
row.push(formulas[i][j].getLinkUrl());
}
output.push(row);
}
return output
}
2.) Highlight the range to apply the conditional formatting.
3.) For the Custom Formula use the following:
=AND(COUNTIF(A:A,A1)>1,COUNTIF(B:B,B1)>1)
This will check for both the column A (the actual text/value only on the cell) and column B (the link) for duplicates.
Result:

hyperlink()
function? (As always, please share example sheet.) - Argyll