Migration from FluxBB while preserving incoming links

It won’t. Permalinks work only for incoming links, not internal ones. You’ll need to write something to re-write those internal links as Discourse quotes. There are examples of that too.