URL error when dottext uses non-80 port (default port)

Source: Internet
Author: User
When a bug is found that the WWW Service is provided on a port other than port 80, some superlinks generated by dottext do not automatically add port numbers.
For example:
URL: http: // host: Port/test/archive/2006/11/27/451 .html
The link generated by dottext is http: // host/test/archive/2006/11/27/451 .html.
Port (: Port) is ignored.

In dottext. Framework. util. globals. CS:
Return string. Format (appurl,Request. url. Host, APP );
Replace all:
Return string. Format (appurl,Host, APP );

Re-compile, OK!

Note:
In factSource codeIf a port already existsCode:
String host = request. url. Host;
If (! Request. url. isdefaultport)
{
Host + = ":" + request. url. port;
}
Only the return statement uses the oldRequest. url. HostVariable. Just change it.
If you do not have the above code, you can add it manually.

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.