Jump to content
Sign in to follow this  
reget

Двойные пути

Recommended Posts

после переустановки конфигана стили и  jquery стали ссылаться на двойные пути

Share this post


Link to post
Share on other sites

то есть пути в коде прописаны как

<link rel="stylesheet" href="/catalog/view/theme/so-sport/css/custom.awew.css"> 
<script src="catalog/view/javascript/jquery/jquery-2.1.1.min.js"></script>
<script src="catalog/view/javascript/bootstrap/js/bootstrap.min.js"></script>
<script src="catalog/view/javascript/soconfig/js/libs.js"></script>
<script src="catalog/view/javascript/soconfig/js/owl.carousel.js"></script>
<script src="catalog/view/javascript/soconfig/js/so.system.js"></script>
<script src="catalog/view/theme/so-sport/js/so.custom.js"></script>
<script src="catalog/view/theme/so-sport/js/common.js"></script>

а ссылаются как

https://en.wineroom.co.il/://en.wineroom.co.il/catalog/view/theme/so-sport/js/common.js

 

сам конфиг

 


// HTTP
define('HTTP_SERVER', REQUEST_SCHEME.'https://wineroom.co.il');

// HTTPS
define('HTTPS_SERVER', REQUEST_SCHEME.'https://wineroom.co.il');

// DIR
define('DIR_APPLICATION', '/var/www/wineroom/data/www/wineroom.co.il/catalog/');
define('DIR_SYSTEM', '/var/www/wineroom/data/www/wineroom.co.il/system/');
define('DIR_IMAGE', '/var/www/wineroom/data/www/wineroom.co.il/image/');
define('DIR_STORAGE', DIR_SYSTEM . 'storage/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/theme/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/'); и тд   хотя раньше все норм было

 

Share this post


Link to post
Share on other sites

то есть пути в коде прописаны как

<link rel="stylesheet" href="/catalog/view/theme/so-sport/css/custom.awew.css"> 
<script src="catalog/view/javascript/jquery/jquery-2.1.1.min.js"></script>
<script src="catalog/view/javascript/bootstrap/js/bootstrap.min.js"></script>
<script src="catalog/view/javascript/soconfig/js/libs.js"></script>
<script src="catalog/view/javascript/soconfig/js/owl.carousel.js"></script>
<script src="catalog/view/javascript/soconfig/js/so.system.js"></script>
<script src="catalog/view/theme/so-sport/js/so.custom.js"></script>
<script src="catalog/view/theme/so-sport/js/common.js"></script>

а ссылаются как

https://en.wineroom.co.il/://en.wineroom.co.il/catalog/view/theme/so-sport/js/common.js

 

сам конфиг

 


// HTTP
define('HTTP_SERVER', REQUEST_SCHEME.'https://wineroom.co.il');

// HTTPS
define('HTTPS_SERVER', REQUEST_SCHEME.'https://wineroom.co.il');

// DIR
define('DIR_APPLICATION', '/var/www/wineroom/data/www/wineroom.co.il/catalog/');
define('DIR_SYSTEM', '/var/www/wineroom/data/www/wineroom.co.il/system/');
define('DIR_IMAGE', '/var/www/wineroom/data/www/wineroom.co.il/image/');
define('DIR_STORAGE', DIR_SYSTEM . 'storage/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/theme/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/'); и тд   хотя раньше все норм было

 

в самом хедер твиг все прописано

{{soconfig.addCss('catalog/view/javascript/font-awesome/css/font-awesome.min.css')}}
{{soconfig.addCss('catalog/view/javascript/soconfig/css/lib.css')}}
{{soconfig.addCss('catalog/view/javascript/soconfig/css/owl.carousel.css')}}
{{soconfig.addCss('catalog/view/theme/'~theme_directory~'/css/ie9-and-up.css')}}

{# =========== Begin General Scripts ==============#}
{{soconfig.addJs('catalog/view/javascript/jquery/jquery-2.1.1.min.js')}}
{{soconfig.addJs('catalog/view/javascript/bootstrap/js/bootstrap.min.js')}}
{{soconfig.addJs('catalog/view/javascript/soconfig/js/libs.js')}}
{{soconfig.addJs('catalog/view/javascript/soconfig/js/owl.carousel.js')}}
{{soconfig.addJs('catalog/view/javascript/soconfig/js/so.system.js')}}

{{soconfig.addJs('catalog/view/theme/'~theme_directory~'/js/so.custom.js')}}
{{soconfig.addJs('catalog/view/theme/'~theme_directory~'/js/common.js')}}

 

 

Share this post


Link to post
Share on other sites

Поставьте слеш перед catalog да и все)

Share this post


Link to post
Share on other sites
1 час назад, Leingard сказал:

Поставьте слеш перед catalog да и все)

это на какой строчке вы catalog  увидели

Share this post


Link to post
Share on other sites
1 час назад, reget сказал:

это на какой строчке вы catalog  увидели

только где это подключение искать в каком файле темы

Share this post


Link to post
Share on other sites
1 час назад, reget сказал:

только где это подключение искать в каком файле темы

да там в модификаторах

Share this post


Link to post
Share on other sites

REQUEST_SCHEME. из конфигов уберите

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.