Closed sabat24 closed 3 years ago
This is a dump "subdir" related issue.
Looks likely #196 ?
Yes. It's duplicate. Somehow I missed it. If I use this bundle in next project I'll take a look closer and propose some solution there.
I understand this may be annoying. But there is many context where a project is hosted.
For instance sometimes in http://acme.org/app app do not stand for "a subdir named app in my public dir" but "my entire project is accessible under /app".
Feel free to ask the people involved in the issue I mentioned (and myself) some help if you wish to contribute on this one.
dump_directory
option for example topublic_html/sitemap
.should be
It's because
Dumper
uses following line to generate urlsetSo the only way to generate sitemap using CLI is to pass
--base-url
command with dump_directory variable. It's possible, but is very annoying beacuse you have to create a wrapper to generate that base-url params as it depends on .env configuration. Then you have to parsedump_directory
path to removepublic_html
string. What's more basically it's not a base-url. It's just url to sitemap index.In my opinion:
newUrlset
should use that path to links other sections correctly.