nooriemad08
As Littlegolden mentioned, his solution is not a stable one. You should try to avoid changes to the core files whenever possible. It looks fine now, but it will give you a lot of headaches later.
Coming back to my suggestion earlier to use the Transliterator extension. I asked the maintainer of that extension how to add your goal as a special kind of "transliterator". Here is his answer:
datitisev
Pollux That can actually be achieved very easily through extend.php
<?php return [
(new \FoF\Transliterator\Extend())
->add('blank', function (string $str) {
return '';
})
];
You find extend.php
in your flarum folder, you can edit it to your needs without having to worry for the future. Of course you need to install URL Transliterator by FriendsOfFlarum as well.