Leave a message in this thread and the user's contacts will be shown to you
Task: Ensure the correctness of internal links in the knowledge base when copying it between different instances of the platform.
[file]23937[/file]
[file]23938[/file]
Example of a knowledge base article: https://icolor-trade.1b.app/app/knowledgebase/edit/69/
[file]23937[/file]
[file]23938[/file]
Details:
[file]23937[/file]
[file]23938[/file]
- There is a knowledge base consisting of a set of articles linked together by hyperlinks.
[file]23937[/file]
[file]23938[/file]
- Current links in articles are absolute and contain the URL of the current platform instance (for example, https://icolor-trade.1b.app/...).
[file]23937[/file]
[file]23938[/file]
- It is necessary to implement a mechanism that will allow copying this knowledge base to another instance of the platform (with a different URL, for example, https://new-shop.1b.app/...).
[file]23937[/file]
[file]23938[/file]
- After copying, all internal links in articles in the new instance should automatically update to point to resources within that new instance.
[file]23937[/file]
[file]23938[/file]
Proposed solution:
[file]23937[/file]
[file]23938[/file]
- Replace the static part of the URL (instance domain) in internal links with a dynamic placeholder variable, for example, [shopurl].
[file]23937[/file]
[file]23938[/file]
Example:
[file]23937[/file]
[file]23938[/file]
- Current link in the article: https://icolor-trade.1b.app/app/knowledgebase/edit/69/
[file]23937[/file]
[file]23938[/file]
- You need to replace it with the template: https://[shopurl]/app/knowledgebase/edit/69/
[file]23937[/file]
[file]23938[/file]
Expected result:
[file]23937[/file]
[file]23938[/file]
When copying the knowledge base to a new instance with the URL https://new-shop.1b.app/, the system should automatically substitute the URL of the new instance instead of the variable [shopurl] so that the links look like this: https://new-shop.1b.app/app/knowledgebase/edit/69/.
[file]23937[/file]
[file]23938[/file]
Technical requirements:
[file]23937[/file]
[file]23938[/file]
- It is necessary to determine how internal links in knowledge base articles are stored and processed.
[file]23937[/file]
[file]23938[/file]
- It is necessary to implement the logic that, when copying the knowledge base:
[file]23937[/file]
[file]23938[/file]
- - Detects all internal links in articles.
[file]23937[/file]
[file]23938[/file]
- - Replaces the static part of the URL with the variable [shopurl] (if it hasn't already been done).
[file]23937[/file]
[file]23938[/file]
- - When displaying articles on a new instance, substitutes the URL of the current instance for the [shopurl] variable.
[file]23937[/file]
[file]23938[/file]
Additional information:
[file]23937[/file]
[file]23938[/file]
- It is important to ensure that this mechanism works for all types of internal links in the knowledge base.
[file]23937[/file]
[file]23938[/file]
- You should consider the possible implications for existing knowledge bases where links do not yet use the [shopurl] variable. This may require a migration process or updating of existing links.
[file]23937[/file]
[file]23938[/file]
[file]23937[/file]
[file]23938[/file]
[file]23937[/file]
[file]23938[/file]
Task: Ensure the correctness of internal links in the knowledge base when copying it between different instances of the platform.
- There is a knowledge base consisting of a set of articles linked together by hyperlinks.
- Current links in articles are absolute and contain the URL of the current platform instance (for example, https://icolor-trade.1b.app/...).
- It is necessary to implement a mechanism that will allow copying this knowledge base to another instance of the platform (with a different URL, for example, https://new-shop.1b.app/...).
- After copying, all internal links in articles in the new instance should automatically update to point to resources within that new instance.
Proposed solution:
- Replace the static part of the URL (instance domain) in internal links with a dynamic placeholder variable, for example, [shopurl].
- It is necessary to determine how internal links in knowledge base articles are stored and processed.
- It is necessary to implement the logic that, when copying the knowledge base:
- - Detects all internal links in articles.
- - Replaces the static part of the URL with the variable [shopurl] (if it hasn't already been done).
- - When displaying articles on a new instance, substitutes the URL of the current instance for the [shopurl] variable.
Additional information:
- It is important to ensure that this mechanism works for all types of internal links in the knowledge base.
- You should consider the possible implications for existing knowledge bases where links do not yet use the [shopurl] variable. This may require a migration process or updating of existing links.
Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter.
Log in and comment
Donate
You don't have enough funds in your account Top up