-
-
Notifications
You must be signed in to change notification settings - Fork 698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[9.0][website_canonical_url] Migrate. #299
Conversation
9639e84
to
10d63f4
Compare
What you can do is to propose this to master. |
I'd love to, but I think I'd need authorisation from @tremlin and @rami-wafaie, because that would imply a license change. |
OK, let's see what they say, but we can also rewrite the code from scratch (and we'll probably need it as v10 controller handling is different - even there are already included some things I think - like the pager). |
d038f15
to
42da245
Compare
42da245
to
87d6579
Compare
@yajo, tests are not correct. |
87d6579
to
8a79a3e
Compare
OCA/server-tools#666 should have fixed it, I rebased, let's see. |
b13231e
to
6e14227
Compare
9720916
to
dd0fa04
Compare
Finally tests are working 😅 However Travis went ❌ because of some weird thing... Only OCB build fails with I think I need some help with that... |
I have no clue either. Have you checked commit history to see if there's an specific commit for that module in OCB that it's not in Odoo? |
But it is an OCA addon. |
Uhm, and it's failing also on main branch? |
Seems like not. |
Yeah, I see that it's failing in both Odoo and OCB. First step should be to fix the main branch. |
There was a problem with Sass indentation and encoding I fixed, please check again now, only OCB fails. |
dd0fa04
to
a7a5dd2
Compare
Yay! #306 made Travis 💚 |
Please squash a bit commits from 8.0 |
add a proper description correct import according to review
bug fixes + add languages clean the code fix README file
[IMP] add pagination support
…CA#260) [IMP] website_canoncial_url: Several improvements * Use safe method to retrieve lang. This avoids a possible `KeyError`. * Use relative paths. Makes this work fine behind an HTTPS proxy. * Prefer `/` over `/page/homepage`. The root path canonicalized is more SEO and user friendly.
a7a5dd2
to
9414839
Compare
Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
LGTM
9414839
to
47ab7bd
Compare
@yajo We want to use this add-on for odoo 10. Is there a PR for odoo 10 already in progress? Otherwise we would migrate it to odoo 10. |
canonical_url = "/" | ||
except: # pragma: no cover | ||
pass | ||
return canonical_url |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yajo Do you think it is enough to use relative paths as canonical links? Based on the google docs you should avoid using relative urls.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not know about that, definitely a 💩, but it should be fixed.
Did almost nothing from 8.0 branch. Just a squash on Transifex's commits, and most basic changes.
@Tecnativa