Skip to content

Conversation

AmirAllayarovSofteq
Copy link
Contributor

No description provided.

@AmirAllayarovSofteq AmirAllayarovSofteq added the issue Something isn't working label Apr 18, 2022
@AmirAllayarovSofteq AmirAllayarovSofteq self-assigned this Apr 18, 2022
// Find img node in syntax tree
visit(tree, 'image', (node) => {
node.url = IS_ABSOLUTE_PATH.test(node.url || '') ? node.url : `${RESOURCES_BASE_URL}${node.url.replace(/^\//, '')}`
node.url = IS_ABSOLUTE_PATH.test(node.url || '') ? node.url : `${RESOURCES_BASE_URL}${additionalPath(config?.history?.location?.search)}${node.url.replace(/^\//, '')}`
Copy link
Contributor

@rsergeenko rsergeenko Apr 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please move additionalPath(config?.history?.location?.search) to the variable
And node.url.replace(/^\//, '')

@AmirAllayarovSofteq AmirAllayarovSofteq merged commit 8e99e04 into main Apr 18, 2022
@AmirAllayarovSofteq AmirAllayarovSofteq deleted the fix/RI-2674_images_path branch April 18, 2022 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

issue Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants