added method to generate absolute URLs with token