Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Calle Bjernekull 28 posts 103 karma points
    Jun 28, 2016 @ 15:22
    Calle Bjernekull
    0

    Error if multiple domains

    Hi, thanks for a great plugin. I found a bug that you might want to know about. If you have multiple domains for a page you get an error. For example if you have different languages for the same page; mysite.com, mysite.se etc

    Have a look in script.js around line 224:

    var relativeUrl = editorState.current.urls[0];
    

    You take the first url in the array, but it's not necessarily the domain that you are using for the moment. This smeans that a full url might be sent to your function GetUrl and will return an invalid url. The backoffice API-url will look something like this:

    http://mysite.se/umbraco/backoffice/api/RankOneApi/AnalyzeUrl?url=http://mysite.sehttp://mysite.com/mypage&focusKeyword=undefined
    

    Which will throw an error.

  • Mark Wemekamp 73 posts 385 karma points
    Jun 28, 2016 @ 15:28
    Mark Wemekamp
    1

    Hi Calle, Thank for the feedback! This problem will be gone with the release of the new version, the node id will be used for rendering the template instead of using the url. I'm still testing some new features and hope to release it this week or maybe next week.

  • Mark Wemekamp 73 posts 385 karma points
    Jul 05, 2016 @ 09:06
    Mark Wemekamp
    0

    I just released v0.3, this bug should be fixed Release notes can be found here: http://www.markwemekamp.com/blog/projects/rankone-seo-toolkit-release-v03/

    Please let me know if it doesn't work

Please Sign in or register to post replies

Write your reply to:

Draft