4
4
< meta charset ="UTF-8 ">
5
5
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6
6
7
- <!-- Primary redirect method - HTTP meta refresh (works in virtually all browsers) -->
8
- < meta http-equiv ="refresh " content ="2; url=https://communityinviter.com/apps/llm-d/join-the-llm-d-community ">
9
-
10
- <!-- Alternative refresh method for maximum compatibility -->
11
- < meta http-equiv ="location " content ="https://communityinviter.com/apps/llm-d/join-the-llm-d-community ">
12
-
13
- <!-- Canonical URL for SEO and indicating the destination -->
14
- < link rel ="canonical " href ="https://communityinviter.com/apps/llm-d/join-the-llm-d-community ">
7
+ <!-- Centralized URL configuration -->
8
+ < script >
9
+ // Define the Slack invite URL in ONE place for easy updates
10
+ var SLACK_INVITE_URL = 'https://inviter.co/llm-d-slack' ;
11
+
12
+ // Immediately write critical meta tags using the variable
13
+ // This works because document.write executes during HTML parsing
14
+ document . write ( '<meta http-equiv="refresh" content="2; url=' + SLACK_INVITE_URL + '">' ) ;
15
+ document . write ( '<meta http-equiv="location" content="' + SLACK_INVITE_URL + '">' ) ;
16
+ document . write ( '<link rel="canonical" href="' + SLACK_INVITE_URL + '">' ) ;
17
+ document . write ( '<meta property="og:url" content="' + SLACK_INVITE_URL + '">' ) ;
18
+
19
+ // Store in window object for later use
20
+ window . SLACK_INVITE_URL = SLACK_INVITE_URL ;
21
+
22
+ // Update user-facing elements that can be dynamically populated
23
+ document . addEventListener ( 'DOMContentLoaded' , function ( ) {
24
+ // Update fallback link
25
+ const fallbackLink = document . getElementById ( 'fallback-link' ) ;
26
+ if ( fallbackLink ) {
27
+ fallbackLink . setAttribute ( 'href' , window . SLACK_INVITE_URL ) ;
28
+ }
29
+
30
+ // Update manual URL text
31
+ const manualUrl = document . getElementById ( 'manual-url' ) ;
32
+ if ( manualUrl ) {
33
+ manualUrl . textContent = window . SLACK_INVITE_URL ;
34
+ }
35
+ } ) ;
36
+ </ script >
15
37
16
38
<!-- Page title and meta information -->
17
39
< title > Redirecting to llm-d Slack Community</ title >
21
43
<!-- Open Graph tags for social sharing -->
22
44
< meta property ="og:title " content ="Join llm-d Slack Community ">
23
45
< meta property ="og:description " content ="Join the llm-d community on Slack ">
24
- < meta property ="og:url " content ="https://communityinviter.com/apps/llm-d/join-the-llm-d-community ">
25
46
< meta property ="og:type " content ="website ">
26
47
27
48
<!-- Twitter Card tags -->
@@ -114,16 +135,16 @@ <h1>Join the llm-d Slack Community</h1>
114
135
115
136
<!-- Primary fallback link for users who disable auto-redirects -->
116
137
< p >
117
- < a href ="https://communityinviter.com/apps/llm-d/join-the-llm-d-community " class ="redirect-link ">
138
+ < a href ="# " id =" fallback-link " class ="redirect-link ">
118
139
Click here if you are not redirected automatically
119
140
</ a >
120
141
</ p >
121
142
122
143
< div class ="manual-instructions ">
123
144
< p > < strong > If the redirect doesn't work:</ strong > </ p >
124
145
< p > Please copy and paste this URL into your browser:</ p >
125
- < p style ="word-break: break-all; font-family: monospace; background: #f8f9fa; padding: 10px; border-radius: 4px; ">
126
- https://communityinviter.com/apps/llm-d/join-the-llm-d-community
146
+ < p id =" manual-url " style ="word-break: break-all; font-family: monospace; background: #f8f9fa; padding: 10px; border-radius: 4px; ">
147
+ <!-- URL will be populated by JavaScript -->
127
148
</ p >
128
149
</ div >
129
150
</ div >
@@ -145,21 +166,22 @@ <h1>Join the llm-d Slack Community</h1>
145
166
clearInterval ( countdown ) ;
146
167
// JavaScript redirect as final fallback
147
168
setTimeout ( function ( ) {
148
- window . location . replace ( "https://communityinviter.com/apps/llm-d/join-the-llm-d-community" ) ;
169
+ window . location . replace ( window . SLACK_INVITE_URL ) ;
149
170
} , 100 ) ;
150
171
}
151
172
} , 1000 ) ;
152
173
} else {
153
174
// Fallback if elements not found - immediate redirect
154
175
setTimeout ( function ( ) {
155
- window . location . replace ( "https://communityinviter.com/apps/llm-d/join-the-llm-d-community" ) ;
176
+ window . location . replace ( window . SLACK_INVITE_URL ) ;
156
177
} , 2000 ) ;
157
178
}
158
179
</ script >
159
180
160
181
<!-- Noscript fallback for browsers with JavaScript disabled -->
161
- < noscript >
162
- < meta http-equiv ="refresh " content ="2; url=https://communityinviter.com/apps/llm-d/join-the-llm-d-community ">
163
- </ noscript >
182
+ < script >
183
+ // Write the noscript fallback using the variable
184
+ document . write ( '<noscript><meta http-equiv="refresh" content="2; url=' + SLACK_INVITE_URL + '"></noscript>' ) ;
185
+ </ script >
164
186
</ body >
165
187
</ html >
0 commit comments