﻿homiKnowledge.dictionary = {};

homiKnowledge.dictionary.go = function (seq, indexPage)
{
    this.url = this.info.pathUrl;
    if (this.info.dictionarySection)
        this.url += '?section=' + this.info.dictionarySection;

    if (seq) 
        this.url += "&seq=" + seq;
    
    if (indexPage)
    {
        this.info.page = 1;
        this.info.searchId = 0;
    }
        
    if (this.info.page > 0)
        this.url += "&page=" + this.info.page;
    
    if (this.info.searchId > 0)
        this.url += '&category=' + ('category'.paramValue() ? 'category'.paramValue() : '') + '&searchId=' + this.info.searchId + '&searchText=' + this.info.searchText;
    
    location.href=this.url;
};

