Hi,
Could you please clarify this in more details? You want to create link to page B on page A? Or, you want to redirect the user from page A to page B?
You can easily use e.g. some editable region or, static HTML web part and create links within the
WYSIWYG Editor using the link selector.
Anyway, since I do not know the code and setting of your custom web part, it is hard to say what is wrong so, if you could tell us also more about the link creation - how are you inserting and resolving the links?
More information about your web part or its code would be much appreciated.
Best regards,
Juraj Ondrus