Title: Exclude dynamic URLs in scripts
Last modified: March 14, 2024

---

# Exclude dynamic URLs in scripts

 *  Resolved [Azamat](https://wordpress.org/support/users/azamat88/)
 * (@azamat88)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/exclude-dynamic-urls-in-scripts/)
 * I have a fields that works with TinyMCE on the page. The TinyMCE is loaded from
   the default WordPress js files:
 *     ```wp-block-code
       https://index.cy/wp-includes/js/tinymce/tinymce.min.js
       ```
   
 * Inside this tinymce.min.js file TinyMCE loads it’s default theme called “modern”.
   The URL to that theme file is created dynamically using TinyMCE’s [document_base_url](https://www.tiny.cloud/docs-3x/reference/Configuration3x/Configuration3x@document_base_url/)
   handle.
 * GTranslate is adding a language segment to that dynamic URL causing 404 error
   for the theme file. The script should be loading this file, which exists:
 *     ```wp-block-code
       https://index.cy/wp-includes/js/tinymce/themes/modern/theme.min.js
       ```
   
 * But it’s loading this URL instead (notice the **/ru/** segment):
 *     ```wp-block-code
       https://index.cy/ru/wp-includes/js/tinymce/themes/modern/theme.min.js
       ```
   
 * How can I exclude dynamically created URLs from getting translated? I’ve already
   tried to set the document_base_url for the TinyMCE init but it didn’t work.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexclude-dynamic-urls-in-scripts%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [edo888](https://wordpress.org/support/users/edo888/)
 * (@edo888)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/exclude-dynamic-urls-in-scripts/#post-17504194)
 * Hi,
 * Please contact our live chat for questions related to our paid version: [https://gtranslate.io/#contact](https://gtranslate.io/#contact)
 * This forum is for free version users only. WordPress forum rules prohibit providing
   support about paid version.
 * Thanks! 🙂

Viewing 1 replies (of 1 total)

The topic ‘Exclude dynamic URLs in scripts’ is closed to new replies.

 * ![](https://ps.w.org/gtranslate/assets/icon-256x256.png?rev=2595917)
 * [Translate Wordpress with GTranslate](https://wordpress.org/plugins/gtranslate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gtranslate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gtranslate/)
 * [Active Topics](https://wordpress.org/support/plugin/gtranslate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gtranslate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gtranslate/reviews/)

## Tags

 * [dynamic url](https://wordpress.org/support/topic-tag/dynamic-url/)
 * [tinymce](https://wordpress.org/support/topic-tag/tinymce/)

 * 1 reply
 * 2 participants
 * Last reply from: [edo888](https://wordpress.org/support/users/edo888/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/exclude-dynamic-urls-in-scripts/#post-17504194)
 * Status: resolved