Jump to content

Clean url from symbols and accented letters


Askancy

Recommended Posts

Posted

If I create a topic called for example: test' è òà.123 asf ..è+[] the url that IP.Board generates will be: 

/forum/topic/97-test-è-òà123-asf-è/

But by making a copy and pasting on social networks or telegram, the url will become:  /forum/topic/97-test-%C3%A8-%C3%B2%C3%A0123-asf-%C3%A8/  not really a nice url.

Is a function already available that allows you to change the accented letters in normal letters? so as to have a url: 97-test-e-oa123-asf-e

I've already seen the plugin "Translit URL 1.0.2", It would be nice to have a function that does it all by itself, like Laravel's Str::slug.

Posted

Those characters are legitimate characters supported in a URL, and we don't have any plans at this time of implementing "transliteration" for them. If this is important for your purposes, you should look into third party solutions.

Posted

@Askancy, for my forums i've created additional structure with short urls which are good for sharing.

For example, instead of this url:

https://koreanrandom.com/forum/topic/1644-%D0%BF%D1%80%D0%BE%D1%87%D1%82%D0%B8%D1%82%D0%B5-%D0%BF%D0%B5%D1%80%D0%B5%D0%B4-%D1%81%D0%BE%D0%B7%D0%B4%D0%B0%D0%BD%D0%B8%D0%B5%D0%BC-%D1%82%D0%B5%D0%BC-%D0%BA%D0%B0%D0%BA-%D0%BF%D1%80%D0%B0%D0%B2%D0%B8%D0%BB%D1%8C%D0%BD%D0%BE-%D0%B7%D0%B0%D0%B4%D0%B0%D1%82%D1%8C-%D0%B2%D0%BE%D0%BF%D1%80%D0%BE%D1%81-%D0%BF%D0%BE%D0%BB%D0%B5%D0%B7%D0%BD%D1%8B%D0%B5-%D1%81%D0%BE%D0%B2%D0%B5%D1%82%D1%8B-%D0%B4%D0%BB%D1%8F-%D0%BD%D0%BE%D0%B2%D0%B8%D1%87%D0%BA%D0%BE%D0%B2/

We can simply use this:

https://kr.cm/f/t/1644/

And it will redirect user to the same topic.

image.png.2671950fc0777e3c046ca1357c570dfb.png

You can easily make something like this and don't transliterate UTF-8 words, as their presence in URL is better for SEO than transliterated text.

  • 1 month later...
Posted
On 10/6/2019 at 10:45 AM, Askancy said:

But by making a copy and pasting on social networks or telegram, the url will become:  /forum/topic/97-test-%C3%A8-%C3%B2%C3%A0123-asf-%C3%A8/  not really a nice url.

Same problem here! Hope IPS takes care of non English customers!

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...