feedback page: portal link points at the top of the directory page, not its #apply anchor

Both references (the static .link-signup href and the PORTAL_URL constant) now
target https://odoo4projects.com/odoo-community-developers/ with no #apply, so a
visitor lands at the page's own introduction instead of dropping mid-page at the
application form. The constant is no longer a second literal: it reads the static
href back from the markup, so the two cannot disagree — the markup href is the one
source. The directory page's own same-page #apply triggers are untouched.
This commit is contained in:
webmaster committed 2026-11-03 23:40:30 +00:00
1 parent 59ffde396f
commit b28c002d7d
1 file changed
+7 -4
+7 -4
View File
@@ -218,7 +218,7 @@
and clients, and the feedback you give here is what we fix before then. and clients, and the feedback you give here is what we fix before then.
<a <a
class="link-signup" class="link-signup"
href="https://odoo4projects.com/odoo-community-developers/#apply" href="https://odoo4projects.com/odoo-community-developers/"
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
>Sign up on the freelancer portal (opens in a new window)</a>. >Sign up on the freelancer portal (opens in a new window)</a>.
@@ -246,9 +246,12 @@
(function () { (function () {
var C = window.O4F; var C = window.O4F;
var app = document.getElementById("app"); var app = document.getElementById("app");
// The application form on the directory page — the anchor the page's own "Get listed" // The freelancer portal — the directory page, at its TOP (its own introduction), not the
// triggers use. There is no separate login or account page, so this is the one target. // directory's apply anchor: that anchor drops the visitor at the application form,
var PORTAL_URL = "https://odoo4projects.com/odoo-community-developers/#apply"; // mid-page, past the page's own intro. There is no separate login or account page, so this
// is the one target. The static .link-signup link in the markup above is the ONE source of
// this URL; the script-written link in step 1 reads it back, so the two can never disagree.
var PORTAL_URL = document.querySelector(".link-signup").href;
function el(tag, cls, text) { function el(tag, cls, text) {
var n = document.createElement(tag); var n = document.createElement(tag);