@Doris_Loh I’m afraid there’s no automated solution beyond manually replacing the links in this case. Please take a look at this post for more details and advice about that.
Although we’re not able to generate in-document links ourselves, there are ways to achieve it in MS Word at least (check out this Microsoft Support guide) and likely in WPS as well.