The Web management editor inserts a picture path problem in TFS

Source: Internet
Author: User

With Web management for TFS, adding attachments in the editor when new work is in use, and is often not displayed correctly in the editor after success (no machine name is used to access the TFS server, a different domain from the server, or access to an extranet address, etc.).

First find:

Microsoft Team Foundation Server 12.0\application tier\web services\web.config files in the

<compilation defaultlanguage= "C #" explicit= "true" debug= "true" > see if the Debug configuration is True or False

If TRUE indicates debug mode, locate: Microsoft Team Foundation Server 12.0\application tier\web services/_static/tfs/12/_scripts/tfs/ Debug/workitemtracking/scripts/tfs. WorkItemTracking.Controls.js

Set to False to find: Microsoft Team Foundation Server 12.0\application tier\web services/_static/tfs/12/_scripts/tfs/min /workitemtracking/scripts/tfs. WorkItemTracking.Controls.js

Search under this file: Editor.insertimage (attachedfile.url); need to be modified to: Editor.insertimage (Attachedfile.url. Replace (/http:\/\/[ ^/]+/ig, ""));

Adding the modified file is a compressed JS file, the compressed file has been renamed to the variable or parameter:

such as: G.insertimage (A.url);

Then need to search Insertimage, find the code format as described above, and then modified to: G.insertimage (A.url.replace (/http:\/\/[^/]+/ig, ""));

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.