import 'package:isekai_wiki/global.dart'; String getPageUrl(String title) { var titleEncoded = Uri.encodeFull(title.replaceAll(RegExp(r" "), "_")); return Global.siteConfig.pageUrlTemplate .replaceAll(RegExp(r"\$1"), titleEncoded); }