Search Issue Tracker
Fixed in 2018.1.X
Fixed in 2017.1.X, 2017.2.X, 2017.3.X
Votes
0
Found in
2017.2.0f3
Issue ID
961465
Regression
No
[UnityWebRequest] Unity WebGL application served from a URL with a non-standard port produces wrong URL
How to reproduce:
1. Create new project file and switch Platform to WebGL
2. Create and assign to GameObject new c# code:
public class NewBehaviourScript : MonoBehaviour {
void Start () {
using(var uwr = new UnityWebRequest("/play/something"))
{
Debug.Log("Formatted url: " + uwr.url);
}
}
}
3. Press Build & Run
Expected result: Formatted url: http://localhost:<port number>/play/something
Actual result: Formatted url: http://localhost/play/something
Reproduced with: 5.6.4p2, 2017.1.2p3, 2017.2.0p2, 2017.3.0b9, 2018.1.0a4
Workaround:
using(var uwr = new UnityWebRequest(Application.absoluteURL + "relative/url"))
{
Debug.Log("Formatted url: " + uwr.url);
}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- Crash on dynamixel_sdk.dynamixel:groupSyncReadTxRxPacket when entering Play Mode after updating path to Dynamixel SDK in script
- NullReferenceException is thrown when changing the Inspector preview selection
Add comment