Closed blink2004 closed 3 years ago
Does it work if you set it to /subdomain1/subdomain2
?
Does it work if you set it to
/subdomain1/subdomain2
?
Yes, it's works. Thanks. But I didn't find this information in https://www.yiiframework.com/doc/api/2.0/yii-web-request#$baseUrl-detail
Well, it says "relative URL". Could you suggest something less confusing? We can update it.
This is opened for discussion. I'm not sure that my point of view make documentation better insted of worse. For my opinion I would describe by template:
For example: $baseUrl - relative URL from server name for files (such as .js, .css, images, etc). Value by default is null. Empty ("") value sets path from server name. All paths between it and files will be ignored. All values should started from slash ("/"). If not make this the path will be duplicated. Not correct: project/folder Correct: /project/folder etc.
But I don't know all possible cases and afraid to make description worse instead of make better.
I'm biased here and for me it would be overkill, not to mention that if we would do that for the whole documentation the project size would be 10x larger. Anyway, I will mention the leading slash in the docs.
Didn't work $config['components']['request']['baseUrl'] in Basic template.
What steps will reproduce the problem?
Next case.
Paths are duplicated.
What is the expected result?
No duplication.
What do you get instead?
Additional info