In permalink URL from old site /2022/10/03/portproton-запуск-второго-приложенияигры not redirect to new discourse instance Portproton. Запуск второго приложения\игры - PortProton - LINUX-GAMING.RU
domain name in new same
The discussion revolves around an issue with permalinks not working when containing Cyrillic symbols. xpamych brings up the problem, and sam suggests creating a second permalink using punycode as a workaround. However, xpamych finds this approach ineffective as search engines still display the original Cyrillic address.
gerhard explains that the permalink works with correctly encoded URLs, but the UI doesn’t make this easy. He provides a temporary workaround by using a URL Encoder to encode the Cyrillic part of the URL. xpamych confirms that this solution works.
A permanent fix is included in a pull request as mentioned by gerhard.
In permalink URL from old site /2022/10/03/portproton-запуск-второго-приложенияигры not redirect to new discourse instance Portproton. Запуск второго приложения\игры - PortProton - LINUX-GAMING.RU
domain name in new same
As a workaround maybe create a second permalink for the punycode? I don’t think we do an internal translation here.
I tried it, but it doesn’t work, the search engine gives the address in its original form with Cyrillic.
The permalink works, if you input a correctly encoded URL. But the UI doesn’t make this easy. I’ll see if we can improve it a bit. I have an improvement for permalinks lined up anyway.
Here’s a workaround for now: Create a permalink for /2022/10/03/portproton-%D0%B7%D0%B0%D0%BF%D1%83%D1%81%D0%BA-%D0%B2%D1%82%D0%BE%D1%80%D0%BE%D0%B3%D0%BE-%D0%BF%D1%80%D0%B8%D0%BB%D0%BE%D0%B6%D0%B5%D0%BD%D0%B8%D1%8F%D0%B8%D0%B3%D1%80%D1%8B
Essentially, what you need to do is, put the last part of the URL (“portproton-запуск-второго-приложенияигры”) into a URL Encoder and use the result as permalink (/2022/10/03/<encoded URL part>).
Great! It’s work! Thanks!
A fix for this is included in Improve permalinks by gschlager · Pull Request #27209 · discourse/discourse · GitHub
This topic was automatically closed after 4 days. New replies are no longer allowed.