diff --git a/partners_api/viator_api.cpp b/partners_api/viator_api.cpp index f3c93a440e..d6f7db1d26 100644 --- a/partners_api/viator_api.cpp +++ b/partners_api/viator_api.cpp @@ -197,13 +197,13 @@ bool RawApi::GetTopProducts(std::string const & destId, std::string const & curr } // static -std::string Api::GetCityUrl(std::string const & destId, std::string const & name) +std::string Api::GetCityUrl(std::string const & destId) { std::ostringstream ost; // The final language and city name will be calculated automatically based on account id and // destination id. - ost << kWebUrl << "/" << languages::GetCurrentNorm() << "/" << GetAccountId() << "/" - << UrlEncode(name) << "/d" << destId << "-ttd?activities=all"; + ost << kWebUrl << "/" << languages::GetCurrentNorm() << "/" << GetAccountId() << "/x/d" << destId + << "-ttd?activities=all"; return ost.str(); } diff --git a/partners_api/viator_api.hpp b/partners_api/viator_api.hpp index dcd63f900d..363ed06132 100644 --- a/partners_api/viator_api.hpp +++ b/partners_api/viator_api.hpp @@ -34,7 +34,7 @@ class Api { public: /// Returns web page address for specified city id. - static std::string GetCityUrl(std::string const & destId, std::string const & name); + static std::string GetCityUrl(std::string const & destId); /// Returns top-5 products for specified city id. /// @currency - currency of the price, if empty then USD will be used.