editor-js / link

Link Tool for Editor.js 2.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update link from backend response (when redirects)

chiliec opened this issue · comments

For example I entered url http://kripipasta.com/story/9630
It redirects to https://kripipasta.com/story/9630-276-j-kilometr.html

So I want to add url to meta data:

{
    "success": 1,
    "meta": {
        "url": "https://kripipasta.com/story/9630-276-j-kilometr.html",
        "title": "276-й километр",
        "description": "Получилось длинно.\r\nЯ работаю на железной дороге, занимаю должность помощника машиниста тепловоза.",
        "image": {
            "url": "https://kripipasta.com/images/gif/42.gif"
        }
    }
}

And I expect the link to be updated.